Commit 98799b0d authored by Paolo Bonzini's avatar Paolo Bonzini
Browse files

vl: fix migration from prelaunch state



Reproducer is simply to migrate a virtual machine that was started with -S,
or that was already migrated.

Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
parent 7ec13c79
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -590,6 +590,8 @@ static const RunStateTransition runstate_transitions_def[] = {
    { RUN_STATE_INMIGRATE, RUN_STATE_WATCHDOG },
    { RUN_STATE_INMIGRATE, RUN_STATE_GUEST_PANICKED },
    { RUN_STATE_INMIGRATE, RUN_STATE_FINISH_MIGRATE },
    { RUN_STATE_INMIGRATE, RUN_STATE_PRELAUNCH },
    { RUN_STATE_INMIGRATE, RUN_STATE_POSTMIGRATE },

    { RUN_STATE_INTERNAL_ERROR, RUN_STATE_PAUSED },
    { RUN_STATE_INTERNAL_ERROR, RUN_STATE_FINISH_MIGRATE },