From: Eric Blake <eblake@redhat.com>
To: Vincenzo Maffione <v.maffione@gmail.com>, qemu-devel@nongnu.org
Cc: peter.maydell@linaro.org, aliguori@amazon.com, mjt@tls.msk.ru,
armbru@redhat.com, lcapitulino@redhat.com, stefanha@redhat.com,
pbonzini@redhat.com, g.lettieri@iet.unipi.it, rizzo@iet.unipi.it,
rth@twiddle.net
Subject: Re: [Qemu-devel] [PATCH v4] net: Adding netmap network backend
Date: Tue, 05 Nov 2013 08:54:48 -0700 [thread overview]
Message-ID: <527914C8.8050700@redhat.com> (raw)
In-Reply-To: <1383664643-31552-1-git-send-email-v.maffione@gmail.com>
[-- Attachment #1: Type: text/plain, Size: 2793 bytes --]
On 11/05/2013 08:17 AM, Vincenzo Maffione wrote:
> This patch adds support for a network backend based on netmap.
> netmap is a framework for high speed packet I/O. You can use it
> to build extremely fast traffic generators, monitors, software
> switches or network middleboxes. Its companion software switch
> VALE lets you interconnect virtual machines.
> netmap and VALE are implemented as a non intrusive kernel module,
s/non intrusive/non-intrusive/
> support NICs from multiple vendors, are part of standard FreeBSD
> distributions and available in source format for Linux too.
>
> To compile QEMU with netmap support, use the following configure
> options:
> ./configure [...] --enable-netmap --extra-cflags=-I/path/to/netmap/sys
> where "/path/to/netmap" contains the netmap source code, available at
> http://info.iet.unipi.it/~luigi/netmap/
>
> The same webpage contains more information about the netmap project
> (together with papers and presentations).
>
> Signed-off-by: Vincenzo Maffione <v.maffione@gmail.com>
> ---
> +++ b/qapi-schema.json
> @@ -3008,6 +3008,26 @@
> 'hubid': 'int32' } }
>
> ##
> +# @NetdevNetmapOptions
> +#
> +# Connect two or more net clients through a VALE switch.
> +#
> +# @ifname: name of the VALE port: it must be in the form 'valeXXX:YYY',
> +# where XXX and YYY are non-negative integers. XXX identifies
> +# a switch and YYY identifies a port of the switch. VALE
> +# ports having the same XXX are therefore connected to the same
> +# switch.
Will qemu ever parse out the XXX and YYY? Your current patch appears to
just treat ifname as a pass-through opaque string, in which case the set
of valid formats is determined not by qemu but by the VALE system
interface. So I think I'm okay with your approach.
If qemu were to need to parse out the XXX and YYY, I'd argue that your
parameter is typed incorrectly (it's better to be explicit and have
"ifname": { "switch":XXX, "port": YYY } than it is to be vague with
"ifname": "valeXXX:YYY"). One of the goals of qapi is to represent
everything sufficiently that you don't have to reparse opaque strings.
> +#
> +# @devname: optional path of the netmap device (default: '/dev/netmap').
For consistency, s/optional/#optional/
> +#
> +# Since 1.8
> +##
> +{ 'type': 'NetdevNetmapOptions',
> + 'data': {
> + 'ifname': 'str',
> + '*devname': 'str' } }
> +
> +##
> #endif
> +#ifdef CONFIG_NETMAP
> + "-net netmap,ifname=name[,vlan=n][,devname=name]\n"
So where does the optional vlan command-line option appear in the QMP
interface?
--
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: 621 bytes --]
next prev parent reply other threads:[~2013-11-05 15:55 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-05 15:17 [Qemu-devel] [PATCH v4] net: Adding netmap network backend Vincenzo Maffione
2013-11-05 15:54 ` Eric Blake [this message]
2013-11-05 16:01 ` Paolo Bonzini
2013-11-06 9:05 ` Stefan Hajnoczi
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=527914C8.8050700@redhat.com \
--to=eblake@redhat.com \
--cc=aliguori@amazon.com \
--cc=armbru@redhat.com \
--cc=g.lettieri@iet.unipi.it \
--cc=lcapitulino@redhat.com \
--cc=mjt@tls.msk.ru \
--cc=pbonzini@redhat.com \
--cc=peter.maydell@linaro.org \
--cc=qemu-devel@nongnu.org \
--cc=rizzo@iet.unipi.it \
--cc=rth@twiddle.net \
--cc=stefanha@redhat.com \
--cc=v.maffione@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).