]> git.proxmox.com Git - mirror_qemu.git/commit - migration/migration.c
Fixed a QEMU hang when guest poweroff in COLO mode
authorRao, Lei <lei.rao@intel.com>
Thu, 11 Nov 2021 02:11:33 +0000 (10:11 +0800)
committerJuan Quintela <quintela@redhat.com>
Wed, 15 Dec 2021 09:31:42 +0000 (10:31 +0100)
commit795969ab1fe6d5a0f524be92e2e1ecd13f1873eb
treeb83ac36b95c6dd809d0a01e983ec7221c2bd4f05
parent0e0f0479e28c6c1a1d024b2e5200cade479d6901
Fixed a QEMU hang when guest poweroff in COLO mode

When the PVM guest poweroff, the COLO thread may wait a semaphore
in colo_process_checkpoint().So, we should wake up the COLO thread
before migration shutdown.

Signed-off-by: Lei Rao <lei.rao@intel.com>
Reviewed-by: Zhang Chen <chen.zhang@intel.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Juan Quintela <quintela@redhat.com>
include/migration/colo.h
migration/colo.c
migration/migration.c