qemu-devel.nongnu.org archive mirror
 help / color / mirror / Atom feed
From: Dragos Tatulea <dragos.tatulea@gmail.com>
To: "Michael S. Tsirkin" <mst@redhat.com>, Arnd Bergmann <arnd@arndb.de>
Cc: qemu-devel@nongnu.org, kvm@vger.kernel.org
Subject: [Qemu-devel] Re: TODO item: guest programmable mac/vlan filtering with macvtap
Date: Sat, 30 Oct 2010 16:50:23 +0200	[thread overview]
Message-ID: <AANLkTimFyP30WQ6GcsX6Z3nGmv6NWdjiRBCsEEsCXsY7@mail.gmail.com> (raw)
In-Reply-To: <AANLkTin2mrfQcx6P=eeG99OJN03hMyBqZotBdzchz6dM@mail.gmail.com>

Hi,

>    I'm starting a  thread related to the TODO item mentioned in the
> subject. Currently still gathering info and trying to make kvm &
> macvtap play nicely together. I have used this [1] guide to set it up
> but qemu is still complaining about the PCI device address of the
> virtio-net-pci. Tried with latest qemu. Am I missing something here?
>

Here are the suggestions received so far from Michael Tsirkin (and my
questions):

1. add a secondary mac (or third, etc) address to the guest virtio-net
interface.
    - This implies using a single macvtap interface to handle all the macs
    - How would that appear on the guest? As another interface? As a
virtual interface? This is tap-like behavior :).
    - The macvtap interface on the host shouldn't have a mac or should
ignore it.

2. create a vlan device on the guest virtio-net device

3. set promiscuous mode on guest virtio-net device
    - And that means STRICTLY guest promiscuous, right? You shouldn't
be able to receive frames from other VM's, right?

4. the above stuff must be controllable by host admin
  - Well, for this there are a few options:
    > admin switch that allows the guest user to add macs
    > preconfig allowed MAC's in mactap (or qemu config) for the guest user
    > allow/disallow command for user in qemu (although this doesn't
seem to be supported)

What is the use-case for this project? From what I gather so far, the
guest user will be able to add interfaces/macs without rebooting the
VM. Am I correct? Anything else?

Thanks,
Dragos

  parent reply	other threads:[~2010-10-30 15:00 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-10-14 21:40 [Qemu-devel] TODO item: guest programmable mac/vlan filtering with macvtap Dragos Tatulea
2010-10-15  6:56 ` [Qemu-devel] " Michael S. Tsirkin
2010-10-18 10:31   ` Arnd Bergmann
2010-10-30 14:50 ` Dragos Tatulea [this message]
2010-11-01 10:48   ` Dragos Tatulea
2010-11-01 11:29     ` Michael S. Tsirkin
2010-11-01 17:12     ` Dragos Tatulea

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=AANLkTimFyP30WQ6GcsX6Z3nGmv6NWdjiRBCsEEsCXsY7@mail.gmail.com \
    --to=dragos.tatulea@gmail.com \
    --cc=arnd@arndb.de \
    --cc=kvm@vger.kernel.org \
    --cc=mst@redhat.com \
    --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).