From dc63c5044631d30981960d96568cd2abb3d31ede Mon Sep 17 00:00:00 2001 Message-Id: From: Yi Min Zhao Date: Mon, 8 Apr 2019 10:57:23 +0200 Subject: [PATCH] qemu: Auto add pci-root for s390/s390x guests MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The pci-root depends on zpci capability. So autogenerate pci-root if zpci exists. 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 d46673913802b65dd7d33562cce41a78cbc85a88) https://bugzilla.redhat.com/show_bug.cgi?id=1508149 Signed-off-by: Andrea Bolognani Message-Id: <20190408085732.28684-7-abologna@redhat.com> Reviewed-by: Laine Stump Reviewed-by: Ján Tomko --- src/qemu/qemu_domain.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c index 21f0722495..da961f0de9 100644 --- a/src/qemu/qemu_domain.c +++ b/src/qemu/qemu_domain.c @@ -3228,6 +3228,7 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def, case VIR_ARCH_S390X: addDefaultUSB = false; addPanicDevice = true; + addPCIRoot = virQEMUCapsGet(qemuCaps, QEMU_CAPS_DEVICE_ZPCI); break; case VIR_ARCH_SPARC: -- 2.22.0