]> git.ipfire.org Git - thirdparty/qemu.git/commit
migration: Accept 'cont' only after successful incoming migration
authorAmit Shah <amit.shah@redhat.com>
Tue, 27 Jul 2010 10:19:19 +0000 (15:49 +0530)
committerLuiz Capitulino <lcapitulino@redhat.com>
Mon, 11 Oct 2010 22:52:01 +0000 (19:52 -0300)
commitfc4e0c7018f023a415b39984c4b805992fd6cc17
treeeacc3334bd6b474e7a3bd5698903b564b4ba3d25
parent5c0961618d5e8f92d85386cf110117e6ab5dd210
migration: Accept 'cont' only after successful incoming migration

When a 'cont' is issued on a VM that's just waiting for an incoming
migration, the VM reboots and boots into the guest, possibly corrupting
its storage since it could be shared with another VM running elsewhere.

Ensure that a VM started with '-incoming' is only run when an incoming
migration successfully completes.

A new qerror, QERR_MIGRATION_EXPECTED, is added to signal that 'cont'
failed due to no incoming migration has been attempted yet.

Reported-by: Laine Stump <laine@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 8e84865e54cb66fd7b57bb18c312ad3d56b6e276)
migration.c
monitor.c
qerror.c
qerror.h
sysemu.h
vl.c