From: Arnd Bergmann <arnd@arndb.de>
To: "Xin, Xiaohui" <xiaohui.xin@intel.com>
Cc: "netdev@vger.kernel.org" <netdev@vger.kernel.org>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"mingo@elte.hu" <mingo@elte.hu>,
"mst@redhat.com" <mst@redhat.com>,
"jdike@c2.user-mode-linux.org" <jdike@c2.user-mode-linux.org>
Subject: Re: [PATCH 0/3] Provide a zero-copy method on KVM virtio-net.
Date: Thu, 11 Feb 2010 14:25:01 +0100 [thread overview]
Message-ID: <201002111425.01720.arnd@arndb.de> (raw)
In-Reply-To: <97F6D3BD476C464182C1B7BABF0B0AF5C11F641A@shzsmsx502.ccr.corp.intel.com>
On Thursday 11 February 2010, Xin, Xiaohui wrote:
> >This does a lot of things that I had planned for macvtap. It's
> >great to hear that you have made this much progress.
> >
> >However, I'd hope that we could combine this with the macvtap driver,
> >which would give us zero-copy transfer capability both with and
> >without vhost, as well as (tx at least) when using multiple guests
> >on a macvlan setup.
>
> You mean the zero-copy can work with macvtap driver without vhost.
> May you give me some detailed info about your macvtap driver and the
> relationship between vhost and macvtap to make me have a clear picture then?
macvtap provides a user interface that is largely compatible with
the tun/tap driver, and can be used in place of that from qemu.
Vhost-net currently interfaces with tun/tap, but not yet with macvtap,
which is easy enough to add and already on my list.
The underlying code is macvlan, which is a driver that virtualizes
network adapters in software, giving you multiple net_device instances
for a real NIC, each of them with their own MAC address.
In order to do zero-copy transmit with macvtap, the idea is to
add a nonblocking version of the aio_write() function that works
a lot like your transmit function.
For receive, the hardware does not currently know which guest
is supposed to get any frame coming in from the outside. Adding
zero-copy receive requires interaction with the device driver
and hardware capabilities to separate traffic by inbound MAC
address into separate buffers per VM.
> >I'm assuming that the idea is to allow VMDq adapters to simply
> >show up as separate adapters and have the driver handle this
> >in a hardware specific way.
>
> Does the VMDq driver do so now?
I don't think anyone has published a VMDq capable driver so far.
I was just assuming that you were working on one.
Arnd
next prev parent reply other threads:[~2010-02-11 13:25 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-10 11:48 [PATCH 0/3] Provide a zero-copy method on KVM virtio-net Xin Xiaohui
2010-02-10 11:48 ` [PATCH 1/3] A device for zero-copy based " Xin Xiaohui
2010-02-10 11:48 ` [PATCH 2/3] Provides multiple submits and asynchronous notifications Xin Xiaohui
2010-02-10 11:49 ` [PATCH 3/3] Let host NIC driver to DMA to guest user space Xin Xiaohui
2010-02-10 15:17 ` [PATCH 1/3] A device for zero-copy based on KVM virtio-net Eric Dumazet
2010-02-11 5:33 ` Xin, Xiaohui
2010-02-10 13:40 ` [PATCH 0/3] Provide a zero-copy method " Arnd Bergmann
2010-02-11 7:40 ` Xin, Xiaohui
2010-02-11 13:25 ` Arnd Bergmann [this message]
2010-02-11 8:54 ` Xin, Xiaohui
2010-02-11 8:54 ` Xin, Xiaohui
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=201002111425.01720.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=jdike@c2.user-mode-linux.org \
--cc=kvm@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mst@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=xiaohui.xin@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.