From 2c4fb8fc19d1dd6ef8fafdfb1e48998020a368cd Mon Sep 17 00:00:00 2001 Message-Id: <2c4fb8fc19d1dd6ef8fafdfb1e48998020a368cd@dist-git> From: Yi Min Zhao Date: Mon, 8 Apr 2019 10:57:20 +0200 Subject: [PATCH] qemu: Enable PCI multi bus for S390 guests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit QEMU on s390 supports PCI multibus since forever. Signed-off-by: Yi Min Zhao Reviewed-by: Boris Fiuczynski Reviewed-by: Stefan Zimmermann Reviewed-by: Bjoern Walk Reviewed-by: Ján Tomko Reviewed-by: Andrea Bolognani (cherry picked from commit f49a5e3bf4c275ddb8a60274d6ab941b2f99f553) https://bugzilla.redhat.com/show_bug.cgi?id=1508149 Conflicts: * src/qemu/qemu_capabilities.c + context - missing fa95035bd4c9 Signed-off-by: Andrea Bolognani Message-Id: <20190408085732.28684-4-abologna@redhat.com> Reviewed-by: Laine Stump Reviewed-by: Ján Tomko --- src/qemu/qemu_capabilities.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/qemu/qemu_capabilities.c b/src/qemu/qemu_capabilities.c index 8ca53abf2b..5539d168cd 100644 --- a/src/qemu/qemu_capabilities.c +++ b/src/qemu/qemu_capabilities.c @@ -1803,6 +1803,10 @@ bool virQEMUCapsHasPCIMultiBus(virQEMUCapsPtr qemuCaps, return false; } + /* S390 supports PCI-multibus. */ + if (ARCH_IS_S390(def->os.arch)) + return true; + /* If 'virt' supports PCI, it supports multibus. * No extra conditions here for simplicity. */ -- 2.22.0