From 836d46a7ba187b7cfd7188195a3c249ce5d31be6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luk=C3=A1=C5=A1=20Doktor?= Date: Tue, 27 Mar 2018 18:04:44 +0200 Subject: [PATCH] virttest: Always disable io-reserve on root-port MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit it's recommended not to enable io-reserve on pcie-root-port to avoid out of IO issues when too many devices are plugged there. Some details can be found here: https://bugzilla.redhat.com/show_bug.cgi?id=1518278 Signed-off-by: Lukáš Doktor --- virttest/qemu_vm.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/virttest/qemu_vm.py b/virttest/qemu_vm.py index beeb44c58c..abfbeecee2 100644 --- a/virttest/qemu_vm.py +++ b/virttest/qemu_vm.py @@ -1337,6 +1337,10 @@ def sort_key(dev): for pcic in params.objects("pci_controllers"): dev = devices.pcic_by_params(pcic, params.object_params(pcic)) pcics.append(dev) + # To avoid SeaBIOS out of IO issues always disable + # "io-reserve" on "pcie-root-port" + if params.object_params(pcic).get("type") == "pcie-root-port": + pcics[-1].set_param("io-reserve", "0") if params.get("pci_controllers_autosort", "yes") == "yes": pcics.sort(key=sort_key, reverse=False) map(devices.insert, pcics)