]> git.ipfire.org Git - thirdparty/libvirt.git/commit
qemu: Send event VIR_DOMAIN_EVENT_[STOPPED|STARTED] during recreation
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 10 Jul 2025 07:21:21 +0000 (03:21 -0400)
committerDaniel P. Berrangé <berrange@redhat.com>
Fri, 25 Jul 2025 10:36:11 +0000 (11:36 +0100)
commit1af740c5012bb45dfe96c77bcd6b20c28b6bb45d
treed5e2dc19bbab8854c44b976ea479c4b829375de4
parent194a36f4fe14b489b4697396d908c2a2c578ca5c
qemu: Send event VIR_DOMAIN_EVENT_[STOPPED|STARTED] during recreation

For secure guest, FakeReboot kills original QEMU instance and
create new one which is quite different from normal guest.

To reflect this fact, VIR_DOMAIN_EVENT_[STOPPED|STARTED]
are sent to control plane with new introduced reasons
VIR_DOMAIN_EVENT_[STOPPED|STARTED]_RECREATION.

That would let control plane software understand that these
events are from a fake reboot.

Suggested-by: Daniel P. Berrangé <berrange@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
examples/c/misc/event-test.c
include/libvirt/libvirt-domain.h
src/qemu/qemu_process.c
tools/virsh-domain-event.c