From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZQbT-0006hL-1Q for qemu-devel@nongnu.org; Mon, 25 Jan 2010 10:11:47 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZQbN-0006aY-QZ for qemu-devel@nongnu.org; Mon, 25 Jan 2010 10:11:46 -0500 Received: from [199.232.76.173] (port=60558 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZQbN-0006aK-Kh for qemu-devel@nongnu.org; Mon, 25 Jan 2010 10:11:41 -0500 Received: from mx1.redhat.com ([209.132.183.28]:9069) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZQbN-0001IZ-6h for qemu-devel@nongnu.org; Mon, 25 Jan 2010 10:11:41 -0500 Date: Mon, 25 Jan 2010 13:11:30 -0200 From: Luiz Capitulino Subject: Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support Message-ID: <20100125131130.7acf329b@doriath> In-Reply-To: <4B5DAB9E.6040009@redhat.com> References: <1264108180-3666-1-git-send-email-lcapitulino@redhat.com> <1264108180-3666-9-git-send-email-lcapitulino@redhat.com> <4B59E8DF.5020001@codemonkey.ws> <20100122180922.73ae437e@doriath> <4B5DAB9E.6040009@redhat.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Avi Kivity Cc: aliguori@us.ibm.com, Markus Armbruster , qemu-devel@nongnu.org On Mon, 25 Jan 2010 16:33:02 +0200 Avi Kivity wrote: > On 01/25/2010 04:29 PM, Markus Armbruster wrote: > > > > I agree with Anthony that async message masking doesn't really affect > > the protocol proper. We could pretend it does so we can let protocol > > capability negotiation (which we need anyway) cover it. But I'm > > certainly fine with keeping it separate. > > > > Whether we call it protocol or not, the question whether we should > > permit changing the masks at any time is valid, I think. Permitting it > > adds a bit of conceptual complexity, as a command disabling reporting of > > an event can race with the event. But that's just giving clients some > > more rope. I'm fine with that. > > > > Without disagreeing with the rest (which means I'm just nit-picking), > there's no race. Once the command that disables an event report returns > to the caller, the event can no longer be reported. I wouldn't call it a race, but if you don't want an event you'll have to deal with it between mode change and masking. Not a big deal, only confirms that clients are required to know how to ignore events, even if masking is available (which I'm not going to introduce).