From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:49296) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sup3N-00025C-Tl for qemu-devel@nongnu.org; Fri, 27 Jul 2012 14:14:22 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sup3M-0001SL-DT for qemu-devel@nongnu.org; Fri, 27 Jul 2012 14:14:21 -0400 Received: from e8.ny.us.ibm.com ([32.97.182.138]:46871) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sup3M-0001RW-8h for qemu-devel@nongnu.org; Fri, 27 Jul 2012 14:14:20 -0400 Received: from /spool/local by e8.ny.us.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 27 Jul 2012 14:13:57 -0400 Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by d01dlp01.pok.ibm.com (Postfix) with ESMTP id DE7B538C8046 for ; Fri, 27 Jul 2012 14:13:53 -0400 (EDT) Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q6RIDqPq379752 for ; Fri, 27 Jul 2012 14:13:53 -0400 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q6RICopY007602 for ; Fri, 27 Jul 2012 12:12:50 -0600 From: Anthony Liguori In-Reply-To: <5012CEFB.5020604@redhat.com> References: <1343396239-19272-1-git-send-email-aliguori@us.ibm.com> <1343396239-19272-4-git-send-email-aliguori@us.ibm.com> <5012CEFB.5020604@redhat.com> Date: Fri, 27 Jul 2012 13:12:45 -0500 Message-ID: <87a9ylcbtu.fsf@codemonkey.ws> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: Eric Blake Cc: Peter Maydell , libvir-list@redhat.com, Markus Armbruster , Alexander Graf , qemu-devel@nongnu.org Eric Blake writes: > On 07/27/2012 07:37 AM, 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 > > Can a machine have more than one alias? No, it can't. Really, alias is only used to map 'pc' -> 'pc-1.1'. It's never more complicated than that. Regards, Anthony Liguori > In that case, it might be better to have: > > @name: the name of the machine > @alias-of: #optional if present, name is an alias, and this lists the > canonical form that it resolves to > > -- > Eric Blake eblake@redhat.com +1-919-301-3266 > Libvirt virtualization library http://libvirt.org