Received: from eggs.gnu.org ([2001:4830:134:3::10]:54211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1wtj-00055Y-7W for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:15:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z1wte-00077J-52 for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:15:27 -0400 Received: from mx1.redhat.com ([209.132.183.28]:56558) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z1wtd-00076u-UE for qemu-devel@nongnu.org; Mon, 08 Jun 2015 09:15:22 -0400 Date: Mon, 8 Jun 2015 14:15:18 +0100 From: Stefan Hajnoczi Message-ID: <20150608131518.GJ23825@stefanha-thinkpad.redhat.com> References: <1433499756-18720-1-git-send-email-stefanha@redhat.com> <1433499756-18720-5-git-send-email-stefanha@redhat.com> <55719312.80903@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="apbmkPN6Hu/1dI3g" Content-Disposition: inline In-Reply-To: <55719312.80903@redhat.com> Subject: Re: [Qemu-devel] [PULL 4/4] qmp/hmp: add rocker device support List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Scott Feldman Cc: Peter Maydell , Jiri Pirko , qemu-devel@nongnu.org --apbmkPN6Hu/1dI3g Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jun 05, 2015 at 06:16:18AM -0600, Eric Blake wrote: > On 06/05/2015 04:22 AM, Stefan Hajnoczi wrote: > > From: Scott Feldman >=20 > > Add QMP/HMP support for rocker devices. This is mostly for debugging p= urposes > > to see inside the device's tables and port configurations. Some exampl= es: > >=20 > > (qemu) info rocker sw1 > > name: sw1 > > id: 0x0000013512005452 > > ports: 4 > >=20 >=20 > >=20 > > [Changed "%-4ld" to "%4" PRIu64 in hmp_rocker_of_dpa_flows() since > > flow->hits is uint64_t. This fixes compilation on 32-bit hosts. > > --Stefan] > >=20 > > Signed-off-by: Scott Feldman > > Signed-off-by: Jiri Pirko > > Message-id: 1432908109-31559-5-git-send-email-sfeldma@gmail.com > > Signed-off-by: Stefan Hajnoczi > > --- >=20 > > +++ b/qapi/rocker.json > > @@ -0,0 +1,286 @@ > > +## > > +# @Rocker: > > +# > > +# Rocker switch information. > > +# > > +# @name: switch name > > +# > > +# @id: switch ID > > +# > > +# @ports: number of front-panel ports > > +# > > +# Since: 2.4 > > +## > > +{ 'struct': 'RockerSwitch', > > + 'data': { 'name': 'str', 'id': 'uint64', 'ports': 'uint32' } } > > + > > +## > > +# @rocker: >=20 > This... >=20 > > +# > > +# Return rocker switch information. > > +# > > +# Returns: @Rocker information > > +# > > +# Since: 2.4 > > +## > > +{ 'command': 'query-rocker', >=20 > ...and several other query- commands added in this file, are documented > incorrectly (missing the query- in the comment lead-in). Since this is > already at a pull request, it's better to fix it up in a followup patch > if there is no other reason to hold up the pull. Hi Scott, Peter didn't apply this pull request when he saw Eric's comment. Please send one more revision of your latest rocker series with: 1. query- qmp command doc comments fixed as requested by Eric 2. "%-4ld" -> "%4" PRIu64 in hmp_rocker_of_dpa_flows() fixed for 32-bit host format string compatibility. See my comment in the comment description above. 3. Patch revision information (v2, v3 changelog) moved below the '---' so it is not included in the git commit history. Thanks, Stefan --apbmkPN6Hu/1dI3g Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJVdZVmAAoJEJykq7OBq3PI34QH/jQcI66xwoFfZ3x3p4E4TxLK r6v9vLoUWTF/iHc5d4Hn1g3kdZ/+LoJmn0xXgnOk8Z5hCVxQMAaVrUH54nkPR+ta goDY+hQZtWcjSb2WnQ2bJROUAwYSOHQOBHThKBT12y4+v+5HmUvTFiSxfO7xhlbF CK8G48JqrZR3v/jAR5vqDAsRD/6XiDc5T5QEUAWnrrGGgAZifHGa3b4ydv3qOkUh atMzCM31433JSAy94Fl7bB80uNEtq7HFkoSGlR4iFA7yr+mt0RnOww9jMQlwIu7U J3hy1Adgd9ZZ+DXitR0g/KoH6v8aY+G3MKLAL8++7qFYyVJfUA+KxEL5SwzRP08= =l6TQ -----END PGP SIGNATURE----- --apbmkPN6Hu/1dI3g--