From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:56392) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi042-0003hR-GN for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:12:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bi03x-0007YO-GU for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:12:26 -0400 Received: from mx1.redhat.com ([209.132.183.28]:40234) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bi03x-0007YI-7h for qemu-devel@nongnu.org; Thu, 08 Sep 2016 10:12:21 -0400 References: <20160906074710.13495-1-cornelia.huck@de.ibm.com> <20160906074710.13495-35-cornelia.huck@de.ibm.com> From: Eric Blake Message-ID: Date: Thu, 8 Sep 2016 09:12:19 -0500 MIME-Version: 1.0 In-Reply-To: <20160906074710.13495-35-cornelia.huck@de.ibm.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="tGaVL25E5jcGbsCg6iWXcK5kpeA8WNMvS" Subject: Re: [Qemu-devel] [PULL 34/38] qmp: add QMP interface "query-cpu-model-comparison" List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Cornelia Huck , peter.maydell@linaro.org Cc: borntraeger@de.ibm.com, agraf@suse.de, qemu-devel@nongnu.org, David Hildenbrand , jfrei@linux.vnet.ibm.com This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --tGaVL25E5jcGbsCg6iWXcK5kpeA8WNMvS From: Eric Blake To: Cornelia Huck , peter.maydell@linaro.org Cc: borntraeger@de.ibm.com, agraf@suse.de, qemu-devel@nongnu.org, David Hildenbrand , jfrei@linux.vnet.ibm.com Message-ID: Subject: Re: [Qemu-devel] [PULL 34/38] qmp: add QMP interface "query-cpu-model-comparison" References: <20160906074710.13495-1-cornelia.huck@de.ibm.com> <20160906074710.13495-35-cornelia.huck@de.ibm.com> In-Reply-To: <20160906074710.13495-35-cornelia.huck@de.ibm.com> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 09/06/2016 02:47 AM, Cornelia Huck wrote: > From: David Hildenbrand >=20 > Let's provide a standardized interface to compare two CPU models. > "query-cpu-model-compare" takes two models and returns how they compar= e > in a specific configuration. >=20 > +## > +# @CpuModelCompareResult: > +# > +# An enumeration of CPU model comparation results. The result is usual= ly > +# calcualted using e.g. CPU features or CPU generations. s/calcualted/calculated/ > +## > +# @query-cpu-model-comparison: > +# > +# Compares two CPU models, returning how they compare in a specific > +# configuration. The results indicates how both models compare regardi= ng > +# runnability. This result can be used by tooling to make decisions if= a > +# certain CPU model will run in a certain configuration or if a compat= ible > +# CPU model has to be created by baselining. > +# > +# Usually, a CPU model is compared against the maximum possible CPU mo= del > +# of a ceratin configuration (e.g. the "host" model for KVM). If that = CPU s/ceratin/certain/ > +# model is identical or a subset, it will run in that configuration. > +# > +# The result returned by this command may be affected by: > +# > +# * QEMU version: CPU models may look different depending on the QEMU = version. > +# (Except for CPU models reported as "static" in query-cpu-definitio= ns.) > +# * machine-type: CPU model may look different depending on the machi= ne-type. s/model may/model may/ > +# (Except for CPU models reported as "static" in query-cpu-definitio= ns.) > +# * machine options (including accelerator): in some architectures, CP= U models > +# may look different depending on machine and accelerator options. (= Except for > +# CPU models reported as "static" in query-cpu-definitions.) > +# * "-cpu" arguments and global properties: arguments to the -cpu opti= on and > +# global properties may affect expansion of CPU models. Using > +# query-cpu-model-expansion while using these is not advised. > +# > +# Some architectures may not support comparing CPU models. > +# > +# Returns: a CpuModelBaselineInfo. Returns an error if comparing CPU m= odels is > +# not supported, if a model cannot be used, if a model contai= ns > +# an unknown cpu definition name, unknown properties or prope= rties > +# with wrong types. > +# > +# Since: 2.8.0 > +## > +{ 'command': 'query-cpu-model-comparison', > + 'data': { 'modela': 'CpuModelInfo', 'modelb': 'CpuModelInfo' }, > + 'returns': 'CpuModelCompareInfo' } > + --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --tGaVL25E5jcGbsCg6iWXcK5kpeA8WNMvS Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJX0XHDAAoJEKeha0olJ0NqX3cH/2ojzDTGrkrI0iMg2saQNThc YCy7IwYT/ZoROdF/U+XJZCN7oxVBqlpodZqvtPhbM7wY+xVT+USu5/n496sWEVxs jXziL09yunLQ3nFk/TlGa+MvaLWmMmIB/4bCArk0N7qWhz+eM013nhtEnro3v4UH DEZ5xfTEumtOy8S7yEtIo+9VeuDac5XD2UhYCHFmyS4funwaSlJf/VbbsOVMqj/M gco4t0F2eQuaUDuHClYhY7VX7rikEWChWSXEkemgutRiaG2bDeSCkOYwMwoon8x9 s1AhkddnOvWyJBpDz/BoDEHnQ1Bm8BzKMGncc4E3DPNB4HmXmE5ITWFCbMrYSzw= =Xr+d -----END PGP SIGNATURE----- --tGaVL25E5jcGbsCg6iWXcK5kpeA8WNMvS--