]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: RISC-V machines have no PCI
authorLubomir Rintel <lkundrak@v3.sk>
Wed, 22 Aug 2018 09:15:23 +0000 (11:15 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Fri, 24 Aug 2018 11:23:36 +0000 (13:23 +0200)
Signed-off-by: Lubomir Rintel <lkundrak@v3.sk>
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
src/qemu/qemu_domain_address.c

index 6c540a8094af885af2bb039d88498a04f0d77bb6..551883e98972ddb45a604755a605ac9356155412 100644 (file)
@@ -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"))