qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH v2 08/10] qmp: add rocker device support


From: Stefan Hajnoczi
Subject: Re: [Qemu-devel] [PATCH v2 08/10] qmp: add rocker device support
Date: Tue, 6 Jan 2015 15:19:11 +0000
User-agent: Mutt/1.5.23 (2014-03-12)

On Mon, Jan 05, 2015 at 06:24:59PM -0800, address@hidden 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) rocker sw1
> name: sw1
> id: 0x0000013512005452
> ports: 4

The convention is for HMP commands that show information to be "info"
sub-commands.  So this example would be "info rocker sw1".  See
monitor.c:info_cmds[].

The convention for QMP is to call the command "query-rocker".

> 
> (qemu) rocker-ports sw1
>             ena/    speed/ auto
>       port  link    duplex neg?
>      sw1.1  up     10G  FD  No
>      sw1.2  up     10G  FD  No
>      sw1.3  !ena   10G  FD  No
>      sw1.4  !ena   10G  FD  No

HMP: info rocker-ports sw1
QMP: query-rocker-ports

and so on.

> +##
> +# @RockerOfDpaFlow:
> +#
> +# Rocker switch OF-DPA flow
> +#
> +# @cookie: flow unique cookie ID
> +#
> +# @hits: count of matches (hits) on flow
> +#
> +# @key: flow key
> +#
> +# @mask: flow mask
> +#
> +# @action: flow action
> +##

For versioning, the schema should mention which QEMU release a command
was added in:

 # Since: 2.3

That way QAPI consumers can plan accordingly and be aware when older
QEMU binaries may not implement a command.

Attachment: pgp7NB3p2sMiE.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]