]> Git Repo - qemu.git/commitdiff
Fix the qemu crash when guest shutdown during checkpoint
authorRao, Lei <[email protected]>
Tue, 8 Jun 2021 08:23:26 +0000 (16:23 +0800)
committerJason Wang <[email protected]>
Fri, 11 Jun 2021 02:30:13 +0000 (10:30 +0800)
This patch fixes the following:
    qemu-system-x86_64: invalid runstate transition: 'colo' ->'shutdown'
    Aborted (core dumped)

Signed-off-by: Lei Rao <[email protected]>
Reviewed-by: Li Zhijian <[email protected]>
Reviewed-by: Zhang Chen <[email protected]>
Reviewed-by: Lukas Straub <[email protected]>
Tested-by: Lukas Straub <[email protected]>
Signed-off-by: Zhang Chen <[email protected]>
Signed-off-by: Jason Wang <[email protected]>
softmmu/runstate.c

index ce8977c6a29c939ac5890b170031d56aceae230e..15640572c0900b5dfd4ddc5404eacaaa3701a019 100644 (file)
@@ -126,6 +126,7 @@ static const RunStateTransition runstate_transitions_def[] = {
     { RUN_STATE_RESTORE_VM, RUN_STATE_PRELAUNCH },
 
     { RUN_STATE_COLO, RUN_STATE_RUNNING },
+    { RUN_STATE_COLO, RUN_STATE_SHUTDOWN},
 
     { RUN_STATE_RUNNING, RUN_STATE_DEBUG },
     { RUN_STATE_RUNNING, RUN_STATE_INTERNAL_ERROR },
This page took 0.026761 seconds and 4 git commands to generate.