[Top][All Lists]

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

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

From: Anthony Liguori
Subject: [Qemu-devel] Re: [PATCH 2/6] Introduce monitor 'wait' command (v2)
Date: Wed, 08 Apr 2009 13:43:37 -0500
User-agent: Thunderbird (X11/20090320)

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

 - 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.


Anthony Liguori

reply via email to

[Prev in Thread] Current Thread [Next in Thread]