On 09/13/2011 05:03 PM, Eric Blake wrote:
On 09/13/2011 10:14 AM, Michal Privoznik wrote:
If the daemon is restarted so we reconnect to monitor, cdrom media
can be ejected. In that case we don't want to show it in domain xml,
or require it on migration destination.

To check for disk status use 'info block' monitor command.

Yuck - this is still polling-based (we have to ask qemu every time we
want to dumpxml). Whatever happened to the proposal of having
interrupt-based cdrom events, where qemu sends an event any time the
virtual tray changes state (whether by monitor command or
guest-initiated), and libvirt monitors those events to update its
internal state at that time, so that libvirt's internal state is always
accurate?

For reference:
https://www.redhat.com/archives/libvir-list/2011-August/msg00487.html

--
Eric Blake   ebl...@redhat.com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

--
libvir-list mailing list
libvir-list@redhat.com
https://www.redhat.com/mailman/listinfo/libvir-list

Reply via email to