From: Eric Blake <eblake@redhat.com>
To: Or Goshen <oberonc@gmail.com>, Luiz Capitulino <lcapitulino@redhat.com>
Cc: qemu-devel@nongnu.org, Or Goshen <or@heartbeat.com>
Subject: Re: [Qemu-devel] [PATCH] Add a command to QMP to list the supported devices
Date: Mon, 24 Feb 2014 08:40:57 -0700 [thread overview]
Message-ID: <530B6809.50305@redhat.com> (raw)
In-Reply-To: <1393233796-1328-1-git-send-email-orx.goshen@intel.com>
[-- Attachment #1: Type: text/plain, Size: 1382 bytes --]
On 02/24/2014 02:23 AM, Or Goshen wrote:
> From: Or Goshen <or@heartbeat.com>
>
> Was done on behalf of Intel Corp.
>
> ---
> +++ b/qapi-schema.json
> @@ -526,6 +526,32 @@
> { 'command': 'query-commands', 'returns': ['CommandInfo'] }
>
> ##
> +# @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 one?
> + "desc":"Standard PCI Bridge"
Is the description intended to be machine parseable, or is it only for
human consumption?
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 604 bytes --]
prev parent reply other threads:[~2014-02-24 15:41 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-02-24 9:23 [Qemu-devel] [PATCH] Add a command to QMP to list the supported devices Or Goshen
2014-02-24 9:31 ` Paolo Bonzini
2014-02-24 13:40 ` Andreas Färber
2014-02-24 13:44 ` Paolo Bonzini
2014-02-24 13:49 ` Or Goshen
2014-02-24 18:05 ` Paolo Bonzini
2014-02-24 15:40 ` Eric Blake [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=530B6809.50305@redhat.com \
--to=eblake@redhat.com \
--cc=lcapitulino@redhat.com \
--cc=oberonc@gmail.com \
--cc=or@heartbeat.com \
--cc=qemu-devel@nongnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.