[libvirt] [PATCH 2/7] Invert condition in qemuDomainDefAddDefaultDevices

Ján Tomko jtomko at redhat.com
Tue May 3 10:47:22 UTC 2016


For all the other machine types, we use a positive condition.

Be more positive and use it for i440fx too.
---
 src/qemu/qemu_domain.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/src/qemu/qemu_domain.c b/src/qemu/qemu_domain.c
index c17abbb..9519334 100644
--- a/src/qemu/qemu_domain.c
+++ b/src/qemu/qemu_domain.c
@@ -1753,9 +1753,8 @@ qemuDomainDefAddDefaultDevices(virDomainDefPtr def,
                 addDefaultUSB = false;
             break;
         }
-        if (!qemuDomainMachineIsI440FX(def))
-            break;
-        addPCIRoot = true;
+        if (qemuDomainMachineIsI440FX(def))
+            addPCIRoot = true;
         break;
 
     case VIR_ARCH_ARMV7L:
-- 
2.7.3




More information about the libvir-list mailing list