Skip to content
Snippets Groups Projects
Commit fc4e0c70 authored by Amit Shah's avatar Amit Shah Committed by Luiz Capitulino
Browse files

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: default avatarLaine Stump <laine@redhat.com>
Signed-off-by: default avatarAmit Shah <amit.shah@redhat.com>
Reviewed-by: default avatarLuiz Capitulino <lcapitulino@redhat.com>
Signed-off-by: default avatarAurelien Jarno <aurelien@aurel32.net>
(cherry picked from commit 8e84865e)
parent 5c096161
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment