qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Stefan Hajnoczi <stefanha@gmail.com>
To: sfeldma@gmail.com
Cc: john.fastabend@gmail.com, roopa@cumulusnetworks.com,
	jiri@resnulli.us, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH v2 08/10] qmp: add rocker device support
Date: Tue, 6 Jan 2015 15:19:11 +0000	[thread overview]
Message-ID: <20150106151911.GP29775@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <1420511101-8352-10-git-send-email-sfeldma@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1369 bytes --]

On Mon, Jan 05, 2015 at 06:24:59PM -0800, sfeldma@gmail.com wrote:
> From: Scott Feldman <sfeldma@gmail.com>
> 
> 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 #2: Type: application/pgp-signature, Size: 473 bytes --]

  reply	other threads:[~2015-01-06 15:19 UTC|newest]

Thread overview: 23+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-01-06  2:24 [Qemu-devel] [PATCH v2 00/10] rocker: add new rocker ethernet switch device sfeldma
2015-01-06  2:24 ` sfeldma
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 01/10] pci: move REDHAT_SDHCI device ID to make room for Rocker sfeldma
2015-01-06  9:52   ` Peter Maydell
2015-01-07  7:47     ` Paolo Bonzini
2015-01-07 10:39       ` Peter Maydell
2015-01-07 10:55         ` Paolo Bonzini
2015-01-07 20:28           ` Scott Feldman
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 02/10] net: add MAC address string printer sfeldma
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 03/10] virtio-net: use qemu_mac_strdup_printf sfeldma
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 04/10] rocker: add register programming guide sfeldma
2015-01-06  5:16   ` Jason Wang
2015-01-06  7:50     ` Scott Feldman
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 05/10] pci: add rocker device ID sfeldma
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 06/10] pci: add network device class 'other' for network switches sfeldma
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 07/10] rocker: add new rocker switch device sfeldma
2015-01-06 15:12   ` Stefan Hajnoczi
2015-01-06 16:45     ` Scott Feldman
2015-01-07 12:55       ` Stefan Hajnoczi
2015-01-06  2:24 ` [Qemu-devel] [PATCH v2 08/10] qmp: add rocker device support sfeldma
2015-01-06 15:19   ` Stefan Hajnoczi [this message]
2015-01-06  2:25 ` [Qemu-devel] [PATCH v2 09/10] rocker: add tests sfeldma
2015-01-06  2:25 ` [Qemu-devel] [PATCH v2 10/10] MAINTAINERS: add rocker sfeldma

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=20150106151911.GP29775@stefanha-thinkpad.redhat.com \
    --to=stefanha@gmail.com \
    --cc=jiri@resnulli.us \
    --cc=john.fastabend@gmail.com \
    --cc=qemu-devel@nongnu.org \
    --cc=roopa@cumulusnetworks.com \
    --cc=sfeldma@gmail.com \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).