[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PULL 4/4] qmp/hmp: add rocker device support
From: |
Eric Blake |
Subject: |
Re: [Qemu-devel] [PULL 4/4] qmp/hmp: add rocker device support |
Date: |
Fri, 05 Jun 2015 06:16:18 -0600 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.7.0 |
On 06/05/2015 04:22 AM, Stefan Hajnoczi wrote:
> From: Scott Feldman <address@hidden>
> Add QMP/HMP support for rocker devices. This is mostly for debugging purposes
> to see inside the device's tables and port configurations. Some examples:
>
> (qemu) info rocker sw1
> name: sw1
> id: 0x0000013512005452
> ports: 4
>
>
> [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]
>
> Signed-off-by: Scott Feldman <address@hidden>
> Signed-off-by: Jiri Pirko <address@hidden>
> Message-id: address@hidden
> Signed-off-by: Stefan Hajnoczi <address@hidden>
> ---
> +++ 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:
This...
> +#
> +# Return rocker switch information.
> +#
> +# Returns: @Rocker information
> +#
> +# Since: 2.4
> +##
> +{ 'command': 'query-rocker',
...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.
--
Eric Blake eblake redhat com +1-919-301-3266
Libvirt virtualization library http://libvirt.org
signature.asc
Description: OpenPGP digital signature
- [Qemu-devel] [PULL 0/4] Net patches, Stefan Hajnoczi, 2015/06/05
- [Qemu-devel] [PULL 4/4] qmp/hmp: add rocker device support, Stefan Hajnoczi, 2015/06/05
- Re: [Qemu-devel] [PULL 4/4] qmp/hmp: add rocker device support,
Eric Blake <=
- [Qemu-devel] [PULL 3/4] rocker: bring link up/down on PHY enable/disable, Stefan Hajnoczi, 2015/06/05
- [Qemu-devel] [PULL 2/4] rocker: update tests using hw-derived interface names, Stefan Hajnoczi, 2015/06/05
- [Qemu-devel] [PULL 1/4] rocker: Add support for phys name, Stefan Hajnoczi, 2015/06/05
- Re: [Qemu-devel] [PULL 0/4] Net patches, Peter Maydell, 2015/06/05