From: Lubomir Rintel Date: Wed, 22 Aug 2018 09:15:23 +0000 (+0200) Subject: qemu: RISC-V machines have no PCI X-Git-Tag: v4.7.0-rc1~41 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f165331d00e5304bc02b44d7d1ee739cfac910;p=thirdparty%2Flibvirt.git qemu: RISC-V machines have no PCI Signed-off-by: Lubomir Rintel Reviewed-by: Andrea Bolognani --- diff --git a/src/qemu/qemu_domain_address.c b/src/qemu/qemu_domain_address.c index 6c540a8094..551883e989 100644 --- a/src/qemu/qemu_domain_address.c +++ b/src/qemu/qemu_domain_address.c @@ -2157,7 +2157,9 @@ static bool qemuDomainSupportsPCI(virDomainDefPtr def, virQEMUCapsPtr qemuCaps) { - if ((def->os.arch != VIR_ARCH_ARMV7L) && (def->os.arch != VIR_ARCH_AARCH64)) + if ((def->os.arch != VIR_ARCH_ARMV7L) && + (def->os.arch != VIR_ARCH_AARCH64) && + !ARCH_IS_RISCV(def->os.arch)) return true; if (STREQ(def->os.machine, "versatilepb"))