On 9/7/26 2:06 AM, Daniel P. Berrangé wrote:
On Fri, Sep 04, 2026 at 03:07:30PM -0600, Jim Fehlig wrote:
But perhaps not all time is wasted. During shutdown, a long-exiting QEMU
could exceed the timeout, causing qemuProcessBeginStopJob() to fail and
return early in processMonitorEOFEvent()

https://gitlab.com/libvirt/libvirt/-/blob/master/src/qemu/qemu_driver.c?ref_type=heads#L4187

None of the code from line 4190 through the rest of the function is
executed. When the QEMU process finally disappears,
processShutdownCompletedEvent() is eventually executed, where we only call
qemuDomainRemoveInactive(). Do we miss sending a lifecycle event in this
case?

Not sure, it would have to be tested to validate it.

I verified the event is missed and the audit entry is dropped. Patch sent to 
fix it

https://lists.libvirt.org/archives/list/[email protected]/thread/F3KTV3RNALBDASCVOE7CSWBBN3NTIYXN/

Regards,
Jim

Reply via email to