Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NnIFt-0005Mf-6P for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:06:49 -0500 Received: from [199.232.76.173] (port=44442 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NnIFs-0005M4-QW for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:06:48 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NnIFr-0008Jg-AV for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:06:48 -0500 Received: from mx1.redhat.com ([209.132.183.28]:17186) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1NnIFq-0008JA-Rn for qemu-devel@nongnu.org; Thu, 04 Mar 2010 16:06:47 -0500 Received: from int-mx03.intmail.prod.int.phx2.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.16]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o24L6jZm003255 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Thu, 4 Mar 2010 16:06:45 -0500 From: Markus Armbruster References: <1267718231-13303-1-git-send-email-armbru@redhat.com> <1267718231-13303-29-git-send-email-armbru@redhat.com> <20100304175020.67e8de5a@redhat.com> Date: Thu, 04 Mar 2010 22:06:42 +0100 In-Reply-To: <20100304175020.67e8de5a@redhat.com> (Luiz Capitulino's message of "Thu, 4 Mar 2010 17:50:20 -0300") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Subject: [Qemu-devel] Re: [PATCH 28/50] error: Let converted handlers print in human monitor List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Luiz Capitulino Cc: qemu-devel@nongnu.org Luiz Capitulino writes: > On Thu, 4 Mar 2010 16:56:49 +0100 > Markus Armbruster wrote: > >> While fully converted handlers are not supposed to print anything when >> running in a QMP monitor, they are free to print in a human monitor. > > I disagree. > > One of the key decisions behind the new Monitor design is that handlers > are part of common code. User printing is output-specific and should not > be done by handlers. > > One of the problems with this layer violation is that the consumer of this > data might not be what you have assumed. For example, it has been suggested > that we could move the qemu shell out of qemu in the future. In this case, > this kind of information _could_ be useful. How do you intend to solve the problem of printing help then? The perfect is the enemy of the good. > Another important problem is that free printing like this is error-prone > as it's not at all clear what could be printed and there's no way to catch > mistakes mechanically. Not to mention that this is for sure going to used > by those who want to ignore QMP completely. This paragraph I don't get. > I'm ok with shallow conversion, provided that handler_audit() is there to > warn us about the job to be done.