Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NZPwr-0008Hy-K0 for qemu-devel@nongnu.org; Mon, 25 Jan 2010 09:29:49 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1NZPwn-0008Fx-NW for qemu-devel@nongnu.org; Mon, 25 Jan 2010 09:29:49 -0500 Received: from [199.232.76.173] (port=46142 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NZPwn-0008Fn-Fz for qemu-devel@nongnu.org; Mon, 25 Jan 2010 09:29:45 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37355) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NZPwm-0002EO-PH for qemu-devel@nongnu.org; Mon, 25 Jan 2010 09:29:45 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 08/11] QMP: Asynchronous messages enable/disable support 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> Date: Mon, 25 Jan 2010 15:29:32 +0100 In-Reply-To: <20100122180922.73ae437e@doriath> (Luiz Capitulino's message of "Fri, 22 Jan 2010 18:09:22 -0200") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: aliguori@us.ibm.com, avi@redhat.com, qemu-devel@nongnu.org Luiz Capitulino writes: > On Fri, 22 Jan 2010 12:05:19 -0600 > Anthony Liguori wrote: > >> On 01/21/2010 03:09 PM, Luiz Capitulino wrote: >> > This commit disables asynchronous messages by default and >> > introduces two new QMP commands: async_msg_enable and >> > async_msg_disable. >> > >> > Each QMP Monitor has its own set of asynchronous messages, >> > so for example, if QEMU is run with two QMP Monitors async >> > messages setup in one of them doesn't affect the other. >> > >> > To implement this design a bitmap is introduced to the >> > Monitor struct, each async message is represented by one bit. >> > >> > Signed-off-by: Luiz Capitulino >> > >> >> Ah, I see I was a little confused. >> >> I'd suggest making async message masking an independent mechanism. >> Capabilities should strictly deal with protocol changes, not feature >> details. > > To summarize (after a IRC talk): async messages are considered a > capability and should be enabled during the negotiation phase but > the masking of particular messages are not and can be done at > any time after the negotiation phase. > > I'm ok with that, Markus? 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.