From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrckV-0002d6-L5 for qemu-devel@nongnu.org; Wed, 08 Apr 2009 14:43:47 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrckQ-0002b9-IT for qemu-devel@nongnu.org; Wed, 08 Apr 2009 14:43:46 -0400 Received: from [199.232.76.173] (port=42859 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrckQ-0002b6-EW for qemu-devel@nongnu.org; Wed, 08 Apr 2009 14:43:42 -0400 Received: from e39.co.us.ibm.com ([32.97.110.160]:48211) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrckQ-0005SP-1U for qemu-devel@nongnu.org; Wed, 08 Apr 2009 14:43:42 -0400 Received: from d03relay04.boulder.ibm.com (d03relay04.boulder.ibm.com [9.17.195.106]) by e39.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n38IeWTn014858 for ; Wed, 8 Apr 2009 12:40:32 -0600 Received: from d03av02.boulder.ibm.com (d03av02.boulder.ibm.com [9.17.195.168]) by d03relay04.boulder.ibm.com (8.13.8/8.13.8/NCO v9.2) with ESMTP id n38IheAC208970 for ; Wed, 8 Apr 2009 12:43:40 -0600 Received: from d03av02.boulder.ibm.com (loopback [127.0.0.1]) by d03av02.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n38IhdN0016194 for ; Wed, 8 Apr 2009 12:43:39 -0600 Message-ID: <49DCF059.108@us.ibm.com> Date: Wed, 08 Apr 2009 13:43:37 -0500 From: Anthony Liguori MIME-Version: 1.0 References: <1239215702-23818-1-git-send-email-aliguori@us.ibm.com> <1239215702-23818-2-git-send-email-aliguori@us.ibm.com> In-Reply-To: <1239215702-23818-2-git-send-email-aliguori@us.ibm.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] Re: [PATCH 2/6] Introduce monitor 'wait' command (v2) Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: libvir-list@redhat.com, Jan Kiszka , Hollis Blanchard 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