]> git.ipfire.org Git - thirdparty/libvirt.git/commitdiff
qemu: forbid migration with an IOMMU device
authorJán Tomko <jtomko@redhat.com>
Thu, 23 Mar 2017 10:14:42 +0000 (11:14 +0100)
committerJán Tomko <jtomko@redhat.com>
Thu, 23 Mar 2017 15:35:40 +0000 (16:35 +0100)
https://bugzilla.redhat.com/show_bug.cgi?id=1433994

src/qemu/qemu_migration.c

index f5711bcf744a9e98c3b3945969f30ad44363c2fd..15ed83002466c3235095b0cc61b99ded03838d5c 100644 (file)
@@ -2359,6 +2359,12 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver,
                            _("migration with shmem device is not supported"));
             return false;
         }
+
+        if (vm->def->iommu) {
+            virReportError(VIR_ERR_OPERATION_INVALID, "%s",
+                           _("migration with iommu device is not supported"));
+            return false;
+        }
     }
 
     return true;