From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:55424) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWTYw-0005lf-OF for qemu-devel@nongnu.org; Mon, 21 May 2012 10:26:24 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SWTYr-0001kt-Av for qemu-devel@nongnu.org; Mon, 21 May 2012 10:26:18 -0400 Received: from mx1.redhat.com ([209.132.183.28]:41661) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SWTYr-0001js-2r for qemu-devel@nongnu.org; Mon, 21 May 2012 10:26:13 -0400 Message-ID: <4FBA5078.2050702@redhat.com> Date: Mon, 21 May 2012 16:26:00 +0200 From: Paolo Bonzini MIME-Version: 1.0 References: <4FB6821A.1080902@redhat.com> <20120521105901.4fbe7363@doriath.home> <4FBA4CE0.2090702@codemonkey.ws> <20120521111637.308bdaa6@doriath.home> <4FBA4ED9.6010906@codemonkey.ws> In-Reply-To: <4FBA4ED9.6010906@codemonkey.ws> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] Proposal for extensions of block job commands in QEMU 1.2 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Kevin Wolf , Stefan Hajnoczi , qemu-devel , Luiz Capitulino , Federico Simoncelli , Eric Blake Il 21/05/2012 16:19, Anthony Liguori ha scritto: >> > > I'm not against it in principle, just in practice. Today, checking > whether a command exists is: > > commands = qmp.query_commands() > > if 'block-stream' in commands: > # has block-stream > > I have a hard time envisioning how schema introspection can be > reasonably implemented in a client. schema = qmp.query_command_schema('block-stream') if 'on-error' in schema: # has on-error Paolo