From: Stefan Schallenberg <nafets227(a)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