From: Ján Tomko Date: Thu, 23 Mar 2017 10:14:42 +0000 (+0100) Subject: qemu: forbid migration with an IOMMU device X-Git-Tag: v3.2.0-rc1~160 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b7118623ad5a8e6ea75d693881c08873eefa3e28;p=thirdparty%2Flibvirt.git qemu: forbid migration with an IOMMU device https://bugzilla.redhat.com/show_bug.cgi?id=1433994 --- diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index f5711bcf74..15ed830024 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -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;