From: Martin Kletzander Date: Tue, 20 Sep 2016 09:24:49 +0000 (+0200) Subject: qemu: Disable migration with ivshmem X-Git-Tag: v2.4.0-rc1~141 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d17fab69be7a73336d388b805c282037ffb29647;p=thirdparty%2Flibvirt.git qemu: Disable migration with ivshmem It was never safe anyway and as such shouldn't have been enabled in the first place. Future patches will allow hot-(un)pluging of some ivshmem devices as a workaround. Signed-off-by: Martin Kletzander --- diff --git a/src/qemu/qemu_migration.c b/src/qemu/qemu_migration.c index 1e7abc53f5..1c4a80c3a4 100644 --- a/src/qemu/qemu_migration.c +++ b/src/qemu/qemu_migration.c @@ -2352,6 +2352,12 @@ qemuMigrationIsAllowed(virQEMUDriverPtr driver, return false; } } + + if (vm->def->nshmems) { + virReportError(VIR_ERR_OPERATION_INVALID, "%s", + _("migration with shmem device is not supported")); + return false; + } } return true;