From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932140AbbC3UTp (ORCPT ); Mon, 30 Mar 2015 16:19:45 -0400 Received: from mx1.redhat.com ([209.132.183.28]:50974 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753845AbbC3UTk (ORCPT ); Mon, 30 Mar 2015 16:19:40 -0400 Message-ID: <5519AFCF.2000102@redhat.com> Date: Mon, 30 Mar 2015 14:19:27 -0600 From: Eric Blake Organization: Red Hat, Inc. User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Michael Mueller , qemu-devel@nongnu.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org CC: Eduardo Habkost , Gleb Natapov , Alexander Graf , Christian Borntraeger , Daniel Hansel , "Jason J. Herne" , Cornelia Huck , Paolo Bonzini , Richard Henderson , Andreas Faerber Subject: Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model References: <1427725708-52100-1-git-send-email-mimu@linux.vnet.ibm.com> <1427725708-52100-12-git-send-email-mimu@linux.vnet.ibm.com> In-Reply-To: <1427725708-52100-12-git-send-email-mimu@linux.vnet.ibm.com> OpenPGP: url=http://people.redhat.com/eblake/eblake.gpg Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lOu0WC9owl7muqHIrK025CTpCv1eEDagK" Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lOu0WC9owl7muqHIrK025CTpCv1eEDagK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/30/2015 08:28 AM, Michael Mueller wrote: > This patch implements a new QMP request named 'query-cpu-model'. > It returns the cpu model of cpu 0 and its backing accelerator. >=20 > request: > {"execute" : "query-cpu-model" } >=20 > answer: > {"return" : {"name": "2827-ga2", "accel": "kvm" }} >=20 > Alias names are resolved to their respective machine type and GA names > already during cpu instantiation. Thus, also a cpu model like 'host' > which is implemented as alias will return its normalized cpu model name= =2E >=20 > Furthermore the patch implements the following function: >=20 > - s390_cpu_models_used(), returns true if S390 cpu models are in use >=20 > Signed-off-by: Michael Mueller > --- > +++ b/qapi-schema.json > @@ -2516,6 +2516,16 @@ > { 'command': 'query-machines', 'returns': ['MachineInfo'] } > =20 > ## > +# @AccelId > +# > +# Defines accelerator ids > +# > +# Since: 2.4 > +## > +{ 'enum': 'AccelId', > + 'data': ['qtest', 'tcg', 'kvm', 'xen' ] } Unusual spacing (0 spaces after '[' but 2 spaces before closing ']'?), but not necessarily wrong. > +## > +# @CpuModelInfo: > +# > +# Virtual CPU model definition. > +# > +# @name: the name of the CPU model definition > +# > +# @accel: AccelId (name) of this cpu models accelerator s/models/model's/ --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --lOu0WC9owl7muqHIrK025CTpCv1eEDagK 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVGa/PAAoJEKeha0olJ0NqffQH/1W9huihPCjQt0e1YHT9Vc6c Yp1jhArwBRTere8b26hkPtkmISgeXLDwQYVdRcSMjZgyVSgiwwCZbZsOaWdNyBqz XMoJDsafCscdhQjk3bcMbnS2yH6XyvfKA6BZs65rP9TPCnosW191G0gUixYJIuhm ZG0IqIswQU/xX+nGqFYKBpk/BjHOKgTwtzytkhyBnQuWo9Aqjeu1sVYclbPGEQvm CMve2wIe0mn4Mec6AvmXgnX9/OMv7wiPVPcjfGv8OucM3e81FbutQJxk6vt8BeAB D7WVUPanF0+T+JRZ/DIytrPY5jC3GASkpwB5hra1ATHRtHHL/EtoywLn/m840X0= =MISo -----END PGP SIGNATURE----- --lOu0WC9owl7muqHIrK025CTpCv1eEDagK-- From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35019) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycg9s-000583-MP for qemu-devel@nongnu.org; Mon, 30 Mar 2015 16:19:41 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ycg9p-0002AO-Aq for qemu-devel@nongnu.org; Mon, 30 Mar 2015 16:19:40 -0400 Received: from mx1.redhat.com ([209.132.183.28]:38384) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ycg9p-0002AC-0r for qemu-devel@nongnu.org; Mon, 30 Mar 2015 16:19:37 -0400 Message-ID: <5519AFCF.2000102@redhat.com> Date: Mon, 30 Mar 2015 14:19:27 -0600 From: Eric Blake MIME-Version: 1.0 References: <1427725708-52100-1-git-send-email-mimu@linux.vnet.ibm.com> <1427725708-52100-12-git-send-email-mimu@linux.vnet.ibm.com> In-Reply-To: <1427725708-52100-12-git-send-email-mimu@linux.vnet.ibm.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="lOu0WC9owl7muqHIrK025CTpCv1eEDagK" Subject: Re: [Qemu-devel] [PATCH v4 11/15] target-s390x: New QMP command query-cpu-model List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Michael Mueller , qemu-devel@nongnu.org, kvm@vger.kernel.org, linux-s390@vger.kernel.org, linux-kernel@vger.kernel.org Cc: Cornelia Huck , Eduardo Habkost , Gleb Natapov , Alexander Graf , Christian Borntraeger , "Jason J. Herne" , Daniel Hansel , Paolo Bonzini , Andreas Faerber , Richard Henderson This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --lOu0WC9owl7muqHIrK025CTpCv1eEDagK Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable On 03/30/2015 08:28 AM, Michael Mueller wrote: > This patch implements a new QMP request named 'query-cpu-model'. > It returns the cpu model of cpu 0 and its backing accelerator. >=20 > request: > {"execute" : "query-cpu-model" } >=20 > answer: > {"return" : {"name": "2827-ga2", "accel": "kvm" }} >=20 > Alias names are resolved to their respective machine type and GA names > already during cpu instantiation. Thus, also a cpu model like 'host' > which is implemented as alias will return its normalized cpu model name= =2E >=20 > Furthermore the patch implements the following function: >=20 > - s390_cpu_models_used(), returns true if S390 cpu models are in use >=20 > Signed-off-by: Michael Mueller > --- > +++ b/qapi-schema.json > @@ -2516,6 +2516,16 @@ > { 'command': 'query-machines', 'returns': ['MachineInfo'] } > =20 > ## > +# @AccelId > +# > +# Defines accelerator ids > +# > +# Since: 2.4 > +## > +{ 'enum': 'AccelId', > + 'data': ['qtest', 'tcg', 'kvm', 'xen' ] } Unusual spacing (0 spaces after '[' but 2 spaces before closing ']'?), but not necessarily wrong. > +## > +# @CpuModelInfo: > +# > +# Virtual CPU model definition. > +# > +# @name: the name of the CPU model definition > +# > +# @accel: AccelId (name) of this cpu models accelerator s/models/model's/ --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --lOu0WC9owl7muqHIrK025CTpCv1eEDagK 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 Comment: Public key at http://people.redhat.com/eblake/eblake.gpg Comment: Using GnuPG with Thunderbird - http://www.enigmail.net/ iQEcBAEBCAAGBQJVGa/PAAoJEKeha0olJ0NqffQH/1W9huihPCjQt0e1YHT9Vc6c Yp1jhArwBRTere8b26hkPtkmISgeXLDwQYVdRcSMjZgyVSgiwwCZbZsOaWdNyBqz XMoJDsafCscdhQjk3bcMbnS2yH6XyvfKA6BZs65rP9TPCnosW191G0gUixYJIuhm ZG0IqIswQU/xX+nGqFYKBpk/BjHOKgTwtzytkhyBnQuWo9Aqjeu1sVYclbPGEQvm CMve2wIe0mn4Mec6AvmXgnX9/OMv7wiPVPcjfGv8OucM3e81FbutQJxk6vt8BeAB D7WVUPanF0+T+JRZ/DIytrPY5jC3GASkpwB5hra1ATHRtHHL/EtoywLn/m840X0= =MISo -----END PGP SIGNATURE----- --lOu0WC9owl7muqHIrK025CTpCv1eEDagK--