From: Rao, Lei Date: Tue, 8 Jun 2021 08:23:26 +0000 (+0800) Subject: Fix the qemu crash when guest shutdown during checkpoint X-Git-Tag: v6.1.0~127^2~5 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=229620d52e389bc7690f11e4f5fa9b249b5ca65d;p=qemu-nvme.git Fix the qemu crash when guest shutdown during checkpoint This patch fixes the following: qemu-system-x86_64: invalid runstate transition: 'colo' ->'shutdown' Aborted (core dumped) Signed-off-by: Lei Rao Reviewed-by: Li Zhijian Reviewed-by: Zhang Chen Reviewed-by: Lukas Straub Tested-by: Lukas Straub Signed-off-by: Zhang Chen Signed-off-by: Jason Wang --- diff --git a/softmmu/runstate.c b/softmmu/runstate.c index ce8977c6a2..15640572c0 100644 --- a/softmmu/runstate.c +++ b/softmmu/runstate.c @@ -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 },