[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090914101012.GA14176@redhat.com>
Date: Mon, 14 Sep 2009 13:10:13 +0300
From: "Michael S. Tsirkin" <mst@...hat.com>
To: Or Gerlitz <ogerlitz@...taire.com>
Cc: David Miller <davem@...emloft.net>, netdev@...r.kernel.org,
herbert@...dor.apana.org.au
Subject: Re: [PATCH RFC] tun: export underlying socket
On Mon, Sep 14, 2009 at 12:43:02PM +0300, Or Gerlitz wrote:
> Michael S. Tsirkin wrote:
>> That's already possible. However virtualization users are familiar
>> with configuring the tun device, and tun has grown
>> virtualization-specific extensions, so I don't see a reason not to
>> accomodate these uses
> Today packets are written/read from/to Qemu to/from tun device, how
> would the use case with vhost will look like?
- Configure bridge and tun using existing scripts
- pass tun fd to vhost via an ioctl
- vhost calls tun_get_socket
- from this point, guest networking just goes faster
> Is this the user setting an uplink NIC + bridge + per VM tun device but
> the packets will go from/to virtio-net in the guest kernel to/from vhost
> in the host kernel and then from/to vhost to/from tun? so eventually no
> packets will be seen by the qemu process? I don't see what these scheme
> buys people, I got very much confused.
>
> Or.
A lot of people have asked for tun support in vhost, because qemu
currently uses tun. With this scheme existing code and scripts can be
used to configure both tun and bridge. You also can utilize
virtualization-specific features in tun.
--
MST
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists