[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH 2/2] qemu: Add Default PCI Device for arm guests



From: Stefan Schallenberg <nafets227 users noreply github com>

Signed-off-by: Stefan Schallenberg <infos at nafets.de>
---
 src/qemu/qemu_domain.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index acf351f878..c8157b6888 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -3267,6 +3267,15 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def,
         addDefaultMemballoon = false;
         if (qemuDomainIsARMVirt(def))
             addPCIeRoot = virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_GPEX);
+
+        if (!ARCH_IS_RISCV(def->os.arch) ||
+                    STREQ(def->os.machine, "versatilepb"))
+            addPCIRoot = true;
+
+        if (qemuDomainIsARMVirt(def) &&
+                    virQEMUCapsGet(qemuCaps, QEMU_CAPS_OBJECT_GPEX))
+            addPCIRoot = true;
+
         break;
 
     case VIR_ARCH_PPC64:
-- 
2.19.2


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]