From: Arnd Bergmann <arnd@arndb.de>
To: Asias He <asias.hejun@gmail.com>
Cc: Ingo Molnar <mingo@elte.hu>,
"Michael S. Tsirkin" <mst@redhat.com>,
Jason Wang <jasowang@redhat.com>,
Pekka Enberg <penberg@kernel.org>, Amos Kong <akong@redhat.com>,
kvm@vger.kernel.org
Subject: Re: Does macvtap support host to guest communication?
Date: Mon, 18 Apr 2011 17:05:39 +0200 [thread overview]
Message-ID: <201104181705.39772.arnd@arndb.de> (raw)
In-Reply-To: <4DAC4AF3.3080107@gmail.com>
On Monday 18 April 2011, Asias He wrote:
> We do need "guest appearing on the same network as the host" support as
> well. The reason I am considering using macvatp instead of tap plus
> brctl is that it simplifies the bridge configuration and it is more
> efficient.
Right, you certainly don't need to consider tap/brctl any more.
> However, IMHO, the interface of macvtap is not user friendly, at least
> for me. I have no idea about the technical reasons that make the
> low-level device inaccessible. But if it is accessible, a lot of
> configuration can be eliminated. I know virtualbox's bridge mode has
> this kind of restriction, while VMware's bridge mode does not.
The main reason is that having a MAC address scan in the regular
networking core would make the common TX case where there is no
macvlan device more complex. Macvtap is derived from the plain
macvlan driver, which used to support only sending out to the
wire until I added the optional bridge mode.
If you want a regular device to be able to send to a macvlan
port, that would require at least these changes:
* Add an option to put a plain device into macvlan-bridge mode
* Add support for that option into iproute2
* Add a hook into dev_queue_xmit() to check for macvlan ports
Arnd
next prev parent reply other threads:[~2011-04-18 15:05 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-18 6:10 Does macvtap support host to guest communication? Asias He
2011-04-18 6:58 ` Arnd Bergmann
2011-04-18 10:21 ` Asias He
2011-04-18 10:53 ` Arnd Bergmann
2011-04-18 12:01 ` Ingo Molnar
2011-04-18 13:20 ` Arnd Bergmann
2011-04-18 14:30 ` Asias He
2011-04-18 15:05 ` Arnd Bergmann [this message]
2011-04-18 15:28 ` Asias He
2011-04-19 12:14 ` Arnd Bergmann
[not found] ` <BANLkTi=MYexojZrCS_EMuHq+A1=zFyxM6g@mail.gmail.com>
2011-04-21 14:54 ` Arnd Bergmann
2011-04-26 9:34 ` Michael S. Tsirkin
2011-04-18 13:29 ` Michael S. Tsirkin
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=201104181705.39772.arnd@arndb.de \
--to=arnd@arndb.de \
--cc=akong@redhat.com \
--cc=asias.hejun@gmail.com \
--cc=jasowang@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mst@redhat.com \
--cc=penberg@kernel.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 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.