]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: fix stupid typos in VFIO cgroup setup/teardown
authorLaine Stump <laine@laine.org>
Fri, 3 May 2013 18:30:55 +0000 (14:30 -0400)
committerLaine Stump <laine@laine.org>
Fri, 3 May 2013 18:32:54 +0000 (14:32 -0400)
I must have looked at this a couple dozen times before I noticed it
had "!=" instead of "==". Not doing this setup prevented qemu from
doing anything with the vfio group device.

src/qemu/qemu_cgroup.c

index 4819cfe99b30ebd6847f01ae329f8cc43a3e2ee9..9c45b76a25482f839c7170ab25bc90680596d2ea 100644 (file)
@@ -237,7 +237,7 @@ qemuSetupHostdevCGroup(virDomainObjPtr vm,
         switch (dev->source.subsys.type) {
         case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI:
             if (dev->source.subsys.u.pci.backend
-                != VIR_DOMAIN_HOSTDEV_PCI_BACKEND_VFIO) {
+                == VIR_DOMAIN_HOSTDEV_PCI_BACKEND_VFIO) {
                 int rc;
 
                 pci = virPCIDeviceNew(dev->source.subsys.u.pci.addr.domain,
@@ -323,7 +323,7 @@ qemuTeardownHostdevCgroup(virDomainObjPtr vm,
         switch (dev->source.subsys.type) {
         case VIR_DOMAIN_HOSTDEV_SUBSYS_TYPE_PCI:
             if (dev->source.subsys.u.pci.backend
-                != VIR_DOMAIN_HOSTDEV_PCI_BACKEND_VFIO) {
+                == VIR_DOMAIN_HOSTDEV_PCI_BACKEND_VFIO) {
                 int rc;
 
                 pci = virPCIDeviceNew(dev->source.subsys.u.pci.addr.domain,