Re: [PATCH 09/18] virtio: use avail_event index

From
Rusty Russell <hidden>
Date
2011-05-18 00:45:25
Also in
kvm, lkml
Reply to
Michael S. Tsirkin, 2011-05-17
On Tue, 17 May 2011 09:10:31 +0300, "Michael S. Tsirkin" [off-list ref] wrote:
Well one can imagine a driver doing:

	while (virtqueue_get_buf()) {
		virtqueue_add_buf()
	}
	virtqueue_kick()

which looks sensible (batch kicks) but might
process any number of bufs between kicks.
No, we currently only expose the buffers in the kick, so it can only
fill the ring doing that.

We could change that (and maybe that's worth looking at)...
If we look at drivers closely enough, I think none
of them do the equivalent of the above, but not 100% sure.
I'm pretty sure we don't have this kind of 'echo' driver yet.  Drivers
tend to take OS requests and queue them.  The only one which does
anything even partially sophisticated is the net driver...

Thanks,
Rusty.
Thread (51 messages) 51 messages, 5 authors, last reply 2011-05-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help