From d17fab69be7a73336d388b805c282037ffb29647 Mon Sep 17 00:00:00 2001 From: Martin Kletzander Date: Tue, 20 Sep 2016 11:24:49 +0200 Subject: [PATCH] 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 --- src/qemu/qemu_migration.c | 6 ++++++ 1 file changed, 6 insertions(+) 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;