From: Anthony Liguori <anthony@codemonkey.ws>
To: Arnd Bergmann <arnd@arndb.de>
Cc: qemu-devel@nongnu.org
Subject: [Qemu-devel] Re: [PATCH, try 2] qemu/tap: add -net tap,dev= option
Date: Wed, 09 Dec 2009 13:39:21 -0600 [thread overview]
Message-ID: <4B1FFCE9.9040103@codemonkey.ws> (raw)
In-Reply-To: <200912081841.45075.arnd@arndb.de>
Arnd Bergmann wrote:
> In order to support macvtap, we need a way to select the actual
> tap endpoint. While it would be nice to pass it by network interface
> name, passing the character device is more flexible, and we can
> easily do both in the long run.
>
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
>
This isn't really a generic thing and I dislike pretending it is. This
is specifically for macvtap.
If we were going to do this, I'd rather introduce a -net macvtap that
actually allocated the interfaces (similar to how tap works). The
problem with this interface is that it's a two stage process. You have
to create an interface, then hand the name to qemu. It would be just as
easy to hand qemu an fd with a helper.
What's nice about -net tap is that with a little bit of setup
(/etc/qemu-ifup), it Just Works. -net tap,dev= does not share this
property.
I think this is a good place where an exec helper would be a natural fit.
Regards,
Anthony Liguori
next prev parent reply other threads:[~2009-12-09 19:39 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-12-08 17:41 [Qemu-devel] [PATCH, try 2] qemu/tap: add -net tap,dev= option Arnd Bergmann
2009-12-09 10:33 ` Mark McLoughlin
2009-12-09 11:53 ` [Qemu-devel] " Michael S. Tsirkin
2009-12-09 12:33 ` Arnd Bergmann
2009-12-09 13:21 ` [Qemu-devel] Re: [PATCH, try 2] qemu/tap: add -net tap, dev= option Christoph Egger
2009-12-09 13:23 ` [Qemu-devel] Re: [PATCH, try 2] qemu/tap: add -net tap,dev= option Michael S. Tsirkin
2009-12-09 14:49 ` [Qemu-devel] [PATCH, try 2, version 2] qemu/tap: add -net tap, dev= option Arnd Bergmann
2009-12-09 15:27 ` [Qemu-devel] " Michael S. Tsirkin
2009-12-09 15:48 ` Arnd Bergmann
2009-12-09 19:39 ` Anthony Liguori [this message]
2009-12-10 8:55 ` [Qemu-devel] Re: [PATCH, try 2] qemu/tap: add -net tap,dev= option Arnd Bergmann
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=4B1FFCE9.9040103@codemonkey.ws \
--to=anthony@codemonkey.ws \
--cc=arnd@arndb.de \
--cc=qemu-devel@nongnu.org \
/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).