On 10/17/26 00:06, Jim Fehlig via Devel wrote: > From: Jim Fehlig <[email protected]> > > When migrating with VIR_MIGRATE_UNDEFINE_SOURCE, qemuMigrationSrcConfirm() > and qemuMigrationSrcPerformJob() delete the domain's persistent config on > the source host but never emit a VIR_DOMAIN_EVENT_UNDEFINED lifecycle > event. Applications relying solely on domain events never learn the domain > was undefined on the source. > > Add a new UNDEFINED event detail named 'VIR_DOMAIN_EVENT_UNDEFINED_MIGRATED", > and include it when emitting an UNDEFINED event after a successful migration > with VIR_MIGRATE_UNDEFINE_SOURCE flag. > > Signed-off-by: Jim Fehlig <[email protected]> > --- > examples/c/misc/event-test.c | 3 +++ > include/libvirt/libvirt-domain.h | 1 + > src/qemu/qemu_migration.c | 10 ++++++++++ > tools/virsh-domain-event.c | 3 ++- > 4 files changed, 16 insertions(+), 1 deletion(-)
Reviewed-by: Michal Privoznik <[email protected]> Michal
