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

Eric Blake eblake at redhat.com
Tue Sep 13 23:03:09 UTC 2011


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?

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




More information about the libvir-list mailing list