[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [libvirt] [PATCH] qemu: Check for ejected media during startup and migration



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   eblake redhat com    +1-801-349-2682
Libvirt virtualization library http://libvirt.org


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]