]> git.proxmox.com Git - qemu.git/commitdiff
wakeup on migration
authorGerd Hoffmann <kraxel@redhat.com>
Wed, 7 Mar 2012 07:00:26 +0000 (08:00 +0100)
committerLuiz Capitulino <lcapitulino@redhat.com>
Tue, 8 May 2012 17:29:14 +0000 (14:29 -0300)
Wakeup the guest when the live part of the migation is finished.
This avoids being in suspended state on migration, so we don't
have to save the is_suspended bit.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Reviewed-by: Luiz Capitulino <lcapitulino@redhat.com>
migration.c

index 94f7839e8b54114870eb418071b8bc6778fbe039..f9e968ee2af7a0379a655c2092048fd8112c0459 100644 (file)
@@ -252,6 +252,7 @@ static void migrate_fd_put_ready(void *opaque)
         int old_vm_running = runstate_is_running();
 
         DPRINTF("done iterating\n");
+        qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER);
         vm_stop_force_state(RUN_STATE_FINISH_MIGRATE);
 
         if (qemu_savevm_state_complete(s->file) < 0) {