Received: from eggs.gnu.org ([2001:4830:134:3::10]:50884) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypyeo-0006S1-00 for qemu-devel@nongnu.org; Wed, 06 May 2015 08:42:34 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ypyek-0005hH-B1 for qemu-devel@nongnu.org; Wed, 06 May 2015 08:42:33 -0400 Received: from mx1.redhat.com ([209.132.183.28]:53604) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ypyek-0005h6-5M for qemu-devel@nongnu.org; Wed, 06 May 2015 08:42:30 -0400 Date: Wed, 6 May 2015 09:42:26 -0300 From: Eduardo Habkost Message-ID: <20150506124226.GI25766@thinpad.lan.raisama.net> References: <1430146411-34632-1-git-send-email-mimu@linux.vnet.ibm.com> <1430146411-34632-6-git-send-email-mimu@linux.vnet.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1430146411-34632-6-git-send-email-mimu@linux.vnet.ibm.com> Subject: Re: [Qemu-devel] [PATCH v6 05/17] Add optional parameters to QMP command query-cpu-definitions List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Mueller Cc: Cornelia Huck , Gleb Natapov , qemu-devel@nongnu.org, Alexander Graf , Christian Borntraeger , "Jason J. Herne" , Daniel Hansel , Paolo Bonzini , Andreas Faerber , Richard Henderson On Mon, Apr 27, 2015 at 04:53:19PM +0200, Michael Mueller wrote: [...] > diff --git a/qapi-schema.json b/qapi-schema.json > index 215a7bc..285b2d3 100644 > --- a/qapi-schema.json > +++ b/qapi-schema.json > @@ -2536,21 +2536,43 @@ > # > # @name: the name of the CPU definition > # > +# @default: #optional true if cpu model is the default, > +# omitted if false (since 2.4) Maybe we should clarify that it is the default in the machine provided as argument to query-cpu-definitions? > +# > +# @runnable: #optional true if cpu model is runnable, > +# omitted if false (since 2.4) Maybe we should clarify that it means the CPU model is runnable using the machine+accel combination provided as arguments to query-cpu-definitions? (See also my question about the meaning of runnable when machine is omitted, in my reply to patch 15/17). > +# > +# @live-migration-safe: #optional true if cpu model represents a > +# cpu model that is safely migratable > +# omitted if false (since 2.4) > +# > +# @order: #optional order criterion > +# > # Since: 1.2.0 > ## > { 'type': 'CpuDefinitionInfo', > - 'data': { 'name': 'str' } } > + 'data': { 'name': 'str', '*is-default': 'bool', '*runnable': 'bool', > + '*live-migration-safe': 'bool', '*order': 'int' } } > > ## > # @query-cpu-definitions: > # > -# Return a list of supported virtual CPU definitions > +# Return a list of supported virtual CPU definitions. In context with the > +# optional parameters @machine and @accel the returned list contains > +# also information if the respective cpu definition is runnable or the > +# default to be used. > +# > +# @machine: #optional machine type (since 2.4) > +# > +# @accel: #optional accelerator id (since 2.4) > # > # Returns: a list of CpuDefInfo > # > # Since: 1.2.0 > ## > -{ 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo'] } > +{ 'command': 'query-cpu-definitions', > + 'data': { '*machine': 'str', '*accel': 'AccelId' }, > + 'returns': ['CpuDefinitionInfo'] } > -- Eduardo