[libvirt] Re: [PATCH 2/6] Introduce monitor 'wait' command (v2)

Anthony Liguori aliguori at us.ibm.com
Wed Apr 8 18:43:37 UTC 2009


Anthony Liguori wrote:
> The wait command will pause the monitor the command was issued in until a new
> event becomes available.  Events are queued if there isn't a waiter present.
> The wait command completes after a single event is available.
>
> Today, we queue events indefinitely but in the future, I suspect we'll drop
> events that are older than a certain amount of time to avoid infinitely
> allocating memory for long running VMs.
>
> To make use of the new notification mechanism, this patch introduces a
> qemu_notify_event() API.  This API takes three parameters: a class which is
> meant to classify the type of event being generated, a name which is meant to
> distinguish which event in the class that has been generated, and a details
> parameters which is meant to allow events to send arbitrary data with a given
> event.
>
> v1->v2
>  - Added a -d flag to poll for events instead of waiting
>  - Made old events expire after 10 minutes
>   

Shame on me.  I meant to rename wait/poll to wait_event/poll_event.  
It'll be in v3.

Regards,

Anthony Liguori




More information about the libvir-list mailing list