]> git.proxmox.com Git - mirror_qemu.git/commit
Fix the qemu crash when guest shutdown in COLO mode
authorRao, Lei <lei.rao@intel.com>
Fri, 16 Oct 2020 05:52:02 +0000 (13:52 +0800)
committerJason Wang <jasowang@redhat.com>
Wed, 11 Nov 2020 08:52:23 +0000 (16:52 +0800)
commit5647051f432b7c9b57525470b0a79a31339062d2
tree6b0984fef9781afcc4bbfa48f6e9df0fbf8966c6
parentb70cb3b4854dc4d65c89a8f6704c0f1e9d900ac3
Fix the qemu crash when guest shutdown in COLO mode

In COLO mode, if the startup parameters of QEMU include "no-shutdown",
QEMU will crash when the guest shutdown. The root cause is when the
guest shutdown, the state of VM will switch COLO to SHUTDOWN. When do
checkpoint again, the state will be changed to COLO. But the state
switch is undefined in runstate_transitions_def, we should add it.
This patch fixes the following:
qemu-system-x86_64: invalid runstate transition: 'shutdown' -> 'colo'
Aborted

Signed-off-by: Lei Rao <lei.rao@intel.com>
Signed-off-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Signed-off-by: Jason Wang <jasowang@redhat.com>
softmmu/vl.c