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

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

 



From: Stefan Schallenberg <nafets227@xxxxxxxxxxxxxxxxxxxxxxxx>

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

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list



[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]

  Powered by Linux