Comment 27 for bug 1930398

Revision history for this message
In , hhan (hhan-redhat-bugs) wrote :

(In reply to khanicov from comment #21)
> I did not consider emitting an event as part of the bug, but I found the
> issue and fixed it.
>
> Proposed patch on the list:
> https://listman.redhat.com/archives/libvir-list/2022-December/236300.html

Tested on v8.10.0-118-g5ef2582646 and qemu-kvm-7.1.0-6.el9.x86_64:
1. Start VM and then eject the CDROM in guest.
2. Reboot VM by `virsh reset`, `virsh reboot` or guest, the tray-change event is emitted as expected

Check tray-changed event without tray status change
1. Start VM
2. Reboot VM by `virsh reset`, `virsh reboot` or guest, the tray-change event is NOT emitted as expected