From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:50647) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3A8-0001gD-94 for qemu-devel@nongnu.org; Wed, 06 Nov 2013 08:28:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ve3A3-00079e-Kx for qemu-devel@nongnu.org; Wed, 06 Nov 2013 08:28:48 -0500 Received: from mail-ee0-x235.google.com ([2a00:1450:4013:c00::235]:53153) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ve3A3-00079P-Dv for qemu-devel@nongnu.org; Wed, 06 Nov 2013 08:28:43 -0500 Received: by mail-ee0-f53.google.com with SMTP id e51so2544961eek.40 for ; Wed, 06 Nov 2013 05:28:42 -0800 (PST) Date: Wed, 6 Nov 2013 14:28:39 +0100 From: Stefan Hajnoczi Message-ID: <20131106132839.GC9059@stefanha-thinkpad.redhat.com> References: <1383734646-16898-1-git-send-email-v.maffione@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1383734646-16898-1-git-send-email-v.maffione@gmail.com> Subject: Re: [Qemu-devel] [PATCH v6] net: Adding netmap network backend List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Vincenzo Maffione Cc: peter.maydell@linaro.org, stefanha@redhat.com, mjt@tls.msk.ru, qemu-devel@nongnu.org, armbru@redhat.com, aliguori@amazon.com, pbonzini@redhat.com, g.lettieri@iet.unipi.it, lcapitulino@redhat.com, rizzo@iet.unipi.it, rth@twiddle.net On Wed, Nov 06, 2013 at 11:44:06AM +0100, 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, > 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 > --- > Changes: > - Misspelling error (err --> errno) fixed. > - Early return also in netmap_receive(). > - Help/qapi-schema modified, since with netmap backend you can also > directly connect to a netmap-supported host network interface, > as well as to a VALE switch port. > > configure | 32 ++++ > hmp-commands.hx | 4 +- > net/Makefile.objs | 1 + > net/clients.h | 5 + > net/net.c | 6 + > net/netmap.c | 435 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ > qapi-schema.json | 24 ++- > qemu-options.hx | 9 ++ > 8 files changed, 513 insertions(+), 3 deletions(-) > create mode 100644 net/netmap.c Thanks, applied to my net-next tree for QEMU 1.8: https://github.com/stefanha/qemu/commits/net-next Will you be around to maintain and test this in the future? Please add yourself to the ./MAINTAINERS file for net/netmap.c and submit a patch. It's important we have someone who can keep this code working over time. Otherwise the feature may get dropped again due to bitrot. Stefan