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