]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Bypass sending VIR_DOMAIN_EVENT_RESUMED event when TD VM reboot master
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 10 Jul 2025 07:21:22 +0000 (03:21 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 31 Jul 2025 10:40:55 +0000 (11:40 +0100)
commit4747fcc07d801df690180b0b4ea0861c7fc3016f
tree39551146903cd88d90a9749b5f1c6b4a7e33f696
parent4ee4bf062eb2602491f6cf4545b258da88bab5ab
qemu: Bypass sending VIR_DOMAIN_EVENT_RESUMED event when TD VM reboot

When TD VM reboot, qemu process is recreated by destroying old and
creating new one. When new qemu process starts, it sends a RESUME
event while libvirt domain isn't in run state yet. Then event
VIR_DOMAIN_EVENT_RESUMED is sent out and confuse control plane.

Check priv->pausedShutdown and bypass the event for TD VM, for
normal VM, domain is in run state and already bypassing it.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/qemu/qemu_process.c