diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2012-10-19 16:45:24 +0200 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2012-10-24 11:27:33 -0200 |
commit | 29ed72f15a4c8fd3ac106d874f76cc27b654fd25 (patch) | |
tree | 6551a732b9cc37c5c442600cc230e3f29599877d /vl.c | |
parent | 1e9981465f05a0f103d7e09afd975c9c0ff6d132 (diff) | |
download | qemu-29ed72f15a4c8fd3ac106d874f76cc27b654fd25.tar.gz qemu-29ed72f15a4c8fd3ac106d874f76cc27b654fd25.tar.bz2 qemu-29ed72f15a4c8fd3ac106d874f76cc27b654fd25.zip |
migration: go to paused state after finishing incoming migration with -S
At the end of migration the machine has started already, and cannot be
destroyed without losing the guest's data. Hence, prelaunch is the
wrong state. Go to the paused state instead. QEMU would reach that
state anyway (after running the guest for the blink of an eye) if the
"stop" command had been received after the start of migration.
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'vl.c')
-rw-r--r-- | vl.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -341,7 +341,7 @@ static const RunStateTransition runstate_transitions_def[] = { { RUN_STATE_DEBUG, RUN_STATE_RUNNING }, { RUN_STATE_INMIGRATE, RUN_STATE_RUNNING }, - { RUN_STATE_INMIGRATE, RUN_STATE_PRELAUNCH }, + { RUN_STATE_INMIGRATE, RUN_STATE_PAUSED }, { RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED }, { RUN_STATE_INTERNAL_ERROR, RUN_STATE_FINISH_MIGRATE }, |