From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:45507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzrrI-0004pI-BA for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:14:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1SzrrG-0002UW-Mi for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:14:44 -0400 Received: from mx1.redhat.com ([209.132.183.28]:2480) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1SzrrG-0002UQ-DD for qemu-devel@nongnu.org; Fri, 10 Aug 2012 12:14:42 -0400 Date: Fri, 10 Aug 2012 13:15:11 -0300 From: Luiz Capitulino Message-ID: <20120810131511.3a0b097a@doriath.home> In-Reply-To: <87pq6ylojt.fsf@codemonkey.ws> References: <1343396239-19272-1-git-send-email-aliguori@us.ibm.com> <1343396239-19272-4-git-send-email-aliguori@us.ibm.com> <20120727131248.3fdca751@doriath.home> <87ipcq6c8f.fsf@codemonkey.ws> <20120810115057.261a58c2@doriath.home> <87pq6ylojt.fsf@codemonkey.ws> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH 3/7] qapi: add query-machines command List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , libvir-list@redhat.com, qemu-devel@nongnu.org, Markus Armbruster , Alexander Graf , Eric Blake On Fri, 10 Aug 2012 11:06:14 -0500 Anthony Liguori wrote: > Luiz Capitulino writes: > > > On Fri, 10 Aug 2012 09:41:20 -0500 > > Anthony Liguori wrote: > > > >> Luiz Capitulino writes: > >> > >> > On Fri, 27 Jul 2012 08:37:15 -0500 > >> > Anthony Liguori wrote: > >> > > >> >> This provides the same output as -M ? but in a structured way. > >> >> > >> >> Signed-off-by: Anthony Liguori > >> >> --- > >> >> qapi-schema.json | 28 ++++++++++++++++++++++++++++ > >> >> qmp-commands.hx | 6 ++++++ > >> >> vl.c | 31 +++++++++++++++++++++++++++++++ > >> >> 3 files changed, 65 insertions(+), 0 deletions(-) > >> >> > >> >> diff --git a/qapi-schema.json b/qapi-schema.json > >> >> index 28e9914..5b47026 100644 > >> >> --- a/qapi-schema.json > >> >> +++ b/qapi-schema.json > >> >> @@ -2200,3 +2200,31 @@ > >> >> # Since: 0.14.0 > >> >> ## > >> >> { 'command': 'closefd', 'data': {'fdname': 'str'} } > >> >> + > >> >> +## > >> >> +# @MachineInfo: > >> >> +# > >> >> +# Information describing a machine. > >> >> +# > >> >> +# @name: the name of the machine > >> >> +# > >> >> +# @alias: #optional an alias for the machine name > >> >> +# > >> >> +# @default: #optional whether the machine is default > >> > > >> > Why is default optional? > >> > >> Brievity. > > > > Can you elaborate, please? > > There is only one machine that is default. Having default=false for all > of the rest just adds a lot of unnecessary information in the response. I think it's more consistent to have the key (also, there are better ways to save bytes on the wire if this is an issue), but I don't mind much though.