From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:48844) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHxec-00031t-R9 for qemu-devel@nongnu.org; Mon, 24 Feb 2014 10:41:19 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WHxeY-0005Xa-H3 for qemu-devel@nongnu.org; Mon, 24 Feb 2014 10:41:14 -0500 Received: from mx1.redhat.com ([209.132.183.28]:43458) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WHxeY-0005XL-8X for qemu-devel@nongnu.org; Mon, 24 Feb 2014 10:41:10 -0500 Message-ID: <530B6809.50305@redhat.com> Date: Mon, 24 Feb 2014 08:40:57 -0700 From: Eric Blake MIME-Version: 1.0 References: <1393233796-1328-1-git-send-email-orx.goshen@intel.com> In-Reply-To: <1393233796-1328-1-git-send-email-orx.goshen@intel.com> Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="6T8ug6t2s2cCCsdbH5l7L4khaKMgC1XhS" Subject: Re: [Qemu-devel] [PATCH] Add a command to QMP to list the supported devices List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Or Goshen , Luiz Capitulino Cc: qemu-devel@nongnu.org, Or Goshen This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --6T8ug6t2s2cCCsdbH5l7L4khaKMgC1XhS Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 02/24/2014 02:23 AM, Or Goshen wrote: > From: Or Goshen >=20 > Was done on behalf of Intel Corp. >=20 > --- > +++ b/qapi-schema.json > @@ -526,6 +526,32 @@ > { 'command': 'query-commands', 'returns': ['CommandInfo'] } > =20 > ## > +# @DeviceInfo: > +# > +# Information about a device > +# > +# @name: The command name > +# @bus: The bus it is connected to > +# @alias: Device alias > +# @desc: Description of the device > +# > +# Since: 1.6.0 This needs to be 2.0 (or whatever actual release it first makes it into), not 1.6.0. > +## > +{ 'type': 'DeviceInfo', 'data': {'name': 'str', 'bus': 'str', 'alias':= 'str', 'desc': 'str'} } > + > +## > +# @query-devices: > +# > +# Return a list of supported devices > +# > +# Returns: A list of @DeviceInfo for all supported devices > +# > +# Since: 1.6.0 and again > +-> { "execute": "query-devices" } > +<- { > + "return":[ > + { > + "name":"pci-bridge", > + "bus":"PCI", > + "alias":"", Should alias be optional, rather than an empty string, when there isn't o= ne? > + "desc":"Standard PCI Bridge" Is the description intended to be machine parseable, or is it only for human consumption? --=20 Eric Blake eblake redhat com +1-919-301-3266 Libvirt virtualization library http://libvirt.org --6T8ug6t2s2cCCsdbH5l7L4khaKMgC1XhS 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/ iQEcBAEBCAAGBQJTC2gJAAoJEKeha0olJ0Nq6wIIAJed5y4MG3ZCQcp1BZGQnHFu FwX2u6OImgufvqF27LjdC9XSEIWPKbPfPXmm8NSV3vlBIy0GfISumi19pGA8g7yE jE0nXjTB03nWQley618Adhrq6Dh89tp0h+wvMyRiX1QQ0GPk5tScEM+juzr/l5lz frB10K2SnZAi7w/E6bbOM0QLvagvxUk5KBZXR4ooQHTYMPTuJFoQyX0koj7eD8T3 98rQmLzyIJlK8oaKKoLSFemRV8wHGsJ6deXUxoruOJvE9yE+OXh5IcMoXSz6sjI3 wxhylV7z5Ylfztk1KR9Pfd0IM+qIyFBs1Wa0tPgDayEzPN7SBGM0Yh/85AFc4zw= =A+bj -----END PGP SIGNATURE----- --6T8ug6t2s2cCCsdbH5l7L4khaKMgC1XhS--