From: Stefan Hajnoczi <stefanha@gmail.com>
To: Antonios Motakis <a.motakis@virtualopensystems.com>
Cc: Luke Gorrie <lukego@gmail.com>,
Daniel Raho <s.raho@virtualopensystems.com>,
qemu-devel qemu-devel <qemu-devel@nongnu.org>
Subject: Re: [Qemu-devel] [RFC] Architecture to connect a userspace ethernet switch to QEMU guests via Virtio
Date: Tue, 19 Nov 2013 17:11:44 +0100 [thread overview]
Message-ID: <20131119161144.GA1115@stefanha-thinkpad.redhat.com> (raw)
In-Reply-To: <CAG8rG2ydBBc2eijDi9GNTPtoe4KtVPF+4zjWEBiO+AeG+eAmaw@mail.gmail.com>
On Tue, Nov 19, 2013 at 11:17:40AM +0100, Antonios Motakis wrote:
> There have been discussions before on these lists on the topic of
> connecting a QEMU guest running a virtio_net driver, with an external
> userspace ethernet switch (Snabbswitch in particular). The essential
> requirement in this is to put the virtio backend in the external
> userspace process.
>
> The preferred direction should be similar to vhost, with the main
> difference of the control mechanism being a unix domain socket instead
> of an ioctl interface, and of course placing the backend in an
> userspace process instead the kernel.
>
> Since we are pursuing this direction,we would like to share a more
> detailed description of the architecture we are working on. Any
> feedback is most welcome. It is available here:
> http://www.virtualopensystems.com/media/snabbswitch/rfc_snabbswitch_qemu.pdf
It sounds like you are proposing an interprocess virtio device
interface. QEMU's virtio-pci emulation calls into a new vapp virtio
device inside QEMU, which then forwards virtio device calls to the vapp
process.
This is pretty different from vhost. vhost only puts rx/tx handling in
the kernel. Other functionality is handled by plain old QEMU virtio
device emulation (e.g. virtio-net ctrl virtqueue).
In the past device plugin interfaces have been rejected by the community
because they can lead to lower code quality (out-of-tree devices) and an
avenue to bypass the software license.
So what's the alternative? Reuse as much of the vhost approach as
possible and define a userspace network I/O interface instead of a
device plugin interface.
Stefan
next prev parent reply other threads:[~2013-11-19 16:12 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-19 10:17 [Qemu-devel] [RFC] Architecture to connect a userspace ethernet switch to QEMU guests via Virtio Antonios Motakis
2013-11-19 16:11 ` Stefan Hajnoczi [this message]
2013-11-21 11:01 ` Antonios Motakis
2013-11-22 10:52 ` 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=20131119161144.GA1115@stefanha-thinkpad.redhat.com \
--to=stefanha@gmail.com \
--cc=a.motakis@virtualopensystems.com \
--cc=lukego@gmail.com \
--cc=qemu-devel@nongnu.org \
--cc=s.raho@virtualopensystems.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).