qemu: forbid migration with an IOMMU device

https://bugzilla.redhat.com/show_bug.cgi?id=1433994
This commit is contained in:
Ján Tomko 2017-03-23 11:14:42 +01:00
parent 26026810ea
commit b7118623ad

View File

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