Paolo Bonzini <pbonz...@redhat.com> wrote: > Il 12/11/2012 12:44, Paolo Bonzini ha scritto: >>> @@ -339,7 +351,11 @@ void migrate_fd_put_ready(MigrationState *s) >>> DPRINTF("done iterating\n"); >>> start_time = qemu_get_clock_ms(rt_clock); >>> qemu_system_wakeup_request(QEMU_WAKEUP_REASON_OTHER); >>> - vm_stop_force_state(RUN_STATE_FINISH_MIGRATE); >>> + if (old_vm_running) { >>> + vm_stop(RUN_STATE_FINISH_MIGRATE); >>> + } else { >>> + vm_stop_force_state(RUN_STATE_FINISH_MIGRATE); >>> + } >>> >>> if (qemu_savevm_state_complete(s->file) < 0) { >>> migrate_fd_error(s); > > This hunk also seems to be useless nowadays.
it is needed for when we are migrating in suspended state. We need to fix it some other way, but it needs to remaing for now.