From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47243) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRLCT-0002NT-3Q for qemu-devel@nongnu.org; Wed, 02 Oct 2013 08:06:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VRLCO-0004cK-3S for qemu-devel@nongnu.org; Wed, 02 Oct 2013 08:06:41 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VRLCN-0004cA-QP for qemu-devel@nongnu.org; Wed, 02 Oct 2013 08:06:36 -0400 Message-ID: <524C0C48.2070704@redhat.com> Date: Wed, 02 Oct 2013 06:06:32 -0600 From: Eric Blake MIME-Version: 1.0 References: <1380713622-22325-1-git-send-email-mimu@linux.vnet.ibm.com> <1380713622-22325-11-git-send-email-mimu@linux.vnet.ibm.com> In-Reply-To: <1380713622-22325-11-git-send-email-mimu@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="ve33JNpsTnUUgfoqngV7vdwjbMOBiD3Rg" Subject: Re: [Qemu-devel] [PATCH RFC 10/11] s390/qemu: cpu model QMP query-cpu-model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Mueller Cc: qemu-devel@nongnu.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --ve33JNpsTnUUgfoqngV7vdwjbMOBiD3Rg Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/02/2013 05:33 AM, Michael Mueller wrote: > This patch implements a new QMP request named "cpu-model". It returns > the cpu model of cpu 0. eg: >=20 > request: '{"execute" : "query-cpu-model" } > answer: '{"return" : "2817-ga1" } >=20 > Alias names are resolved to their respactive machine type and GA names > already during cpu instantiation. Thus, also a cpu name like "host", > which is iplemented as alias, will return its normalized cpu model name= =2E >=20 > Signed-off-by: Michael Mueller > --- > +++ b/qapi-schema.json > @@ -3129,6 +3129,29 @@ > ## > { 'command': 'query-cpu-definitions', 'returns': ['CpuDefinitionInfo']= } > =20 > +## > +# @CpuModelInfo: > +# > +# Virtual CPU model definition. > +# > +# @name: the name of the CPU model definition > +# > +# Since: 1.x.0 s/x/7/ - you are targetting 1.7.0 after all. > +## > +{ 'type': 'CpuModelInfo', > + 'data': { 'name': 'str' } } > + > +## > +# @query-cpu-model: > +# > +# Return to current virtual CPU model > +# > +# Returns: CpuModelInfo > +# > +# Since: 1.2.0 s/2/7/ --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --ve33JNpsTnUUgfoqngV7vdwjbMOBiD3Rg Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.14 (GNU/Linux) Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJSTAxIAAoJEKeha0olJ0Nq6pIH/jnCWnesA32c2PZ0tBdG4b3s DhI/mB/ebykmzqigxniik6//vq2fQStJle5Jpc1A9ao/B/nZiX1zCSbzxV4M0Pqw IdeQVMIWEKU6pBPbdxOOFESxgs2zrq+/+8b8bOq87R6AbRWCCzBUihmqY/X+2lTL BpfiV4gcUQ90rKGa7FkgmTD8rCoyIkEWSmr3uaZs3Xub4QIVRfq5Q3KABAuL0yvA p/lujwnxd36ATYkQYu3fbO77pilg7WkNej/D0grUuNB9o4u+81KhGVcxztySLgj3 ovG8QN3DgCqIIJtKXXy+Nq3U0I7QaI6qeM2oyi/OdhkEgGVk8N9aphUPTRh1bV8= =dtk9 -----END PGP SIGNATURE----- --ve33JNpsTnUUgfoqngV7vdwjbMOBiD3Rg--