login
Header Space

 
 

[PATCH 0/5] High-speed tun receive and xmit

Score:
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]
To: <netdev@...>
Cc: Max Krasnyansky <maxk@...>, <virtualization@...>, <linux-kernel@...>
Date: Friday, April 18, 2008 - 12:33 am

kvm (and lguest!) want to get more speed out of the tun device.  We already 
have an ABI for guest<->host comms, called virtio_ring; extending tun to 
understand this (with its async nature and batching) make for an efficient 
network.

But moreover: the same things that make virtio a good guest<->host transport 
make it appealing as a userspace<->kernel transport.  So rather than do 
something just for tun, we create a /dev/vring.  We could do a system call, 
but /dev/vring is sufficient.  It is a nice, simple format for normal tun 
usage too.

We do need a small (backwards-compatible) extension to the ring format if 
we're going to do this however, since we didn't previously expose the 
consumer's view of the producer (and vice verse) in the ring because the 
other end doesn't need to see it.  However, it means that a middleman (as the 
kvm or lguest launcher process now becomes) cannot save and restore all the 
ring state.

Cheers,
Rusty.
--
Previous message: [thread] [date] [author]
Next message: [thread] [date] [author]

Messages in current thread:
[PATCH 0/5] High-speed tun receive and xmit, Rusty Russell, (Fri Apr 18, 12:33 am)
Re: [PATCH 2/5] /dev/vring: simple userspace-kernel ringbuff..., Evgeniy Polyakov, (Sat Apr 19, 12:33 pm)
[PATCH 3/5] /dev/vring limit and base ioctls, Rusty Russell, (Fri Apr 18, 12:41 am)
[PATCH 4/5] tun: vringfd receive support., Rusty Russell, (Fri Apr 18, 12:42 am)
[PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Fri Apr 18, 12:43 am)
Re: [PATCH 5/5] tun: vringfd xmit support., pradeep singh rautela, (Fri Apr 18, 7:46 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Ray Lee, (Fri Apr 18, 10:25 am)
Re: [PATCH 5/5] tun: vringfd xmit support., pradeep singh rautela, (Fri Apr 18, 2:01 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 7:31 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Fri Apr 18, 11:15 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 9:54 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Fri Apr 18, 3:06 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Rusty Russell, (Sat Apr 19, 10:41 am)
Re: [PATCH 5/5] tun: vringfd xmit support., Andrew Morton, (Sat Apr 19, 1:51 pm)
Re: [PATCH 5/5] tun: vringfd xmit support., Ray Lee, (Fri Apr 18, 12:24 pm)
speck-geostationary