diff options
author | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-14 11:18:09 -0300 |
---|---|---|
committer | Luiz Capitulino <lcapitulino@redhat.com> | 2011-10-19 10:48:57 -0200 |
commit | 8a9236f1d2e91ddd31e3eeae8fe27392c07324a9 (patch) | |
tree | 8d47b900a239c9183f7ce5921a6b9e5b3d52ea35 /migration.c | |
parent | c370f09dba0f0d92e0e8127e9e444f58e9332448 (diff) | |
download | qemu-8a9236f1d2e91ddd31e3eeae8fe27392c07324a9.zip qemu-8a9236f1d2e91ddd31e3eeae8fe27392c07324a9.tar.gz qemu-8a9236f1d2e91ddd31e3eeae8fe27392c07324a9.tar.bz2 |
runstate: Allow user to migrate twice
It should be a matter of allowing the transition POSTMIGRATE ->
FINISH_MIGRATE, but it turns out that the VM won't do the
transition the second time because it's already stopped.
So this commit also adds vm_stop_force_state() which performs
the transition even if the VM is already stopped.
While there also allow other states to migrate.
Signed-off-by: Luiz Capitulino <lcapitulino@redhat.com>
Diffstat (limited to 'migration.c')
-rw-r--r-- | migration.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/migration.c b/migration.c index 77a51ad..62b74a6 100644 --- a/migration.c +++ b/migration.c @@ -375,7 +375,7 @@ void migrate_fd_put_ready(void *opaque) int old_vm_running = runstate_is_running(); DPRINTF("done iterating\n"); - vm_stop(RUN_STATE_FINISH_MIGRATE); + vm_stop_force_state(RUN_STATE_FINISH_MIGRATE); if ((qemu_savevm_state_complete(s->mon, s->file)) < 0) { if (old_vm_running) { |