Re: [Qemu-devel] [PATCH RESEND 0/3] Introduce virtqueue_get_avail_bytes()

2012-09-28 Thread Michael S. Tsirkin
On Tue, Sep 25, 2012 at 12:05:13AM +0530, Amit Shah wrote: > This is a rebased version of the patchset sent earlier. > > The current virtqueue_avail_bytes() is a weird API: it's oddly-named: > doesn't tell us what the API is going to do, and also suits just one > use-case (that in virtio-net.c). >

[Qemu-devel] [PATCH RESEND 0/3] Introduce virtqueue_get_avail_bytes()

2012-09-24 Thread Amit Shah
This is a rebased version of the patchset sent earlier. The current virtqueue_avail_bytes() is a weird API: it's oddly-named: doesn't tell us what the API is going to do, and also suits just one use-case (that in virtio-net.c). Introduce virtqueue_get_avail_bytes(), which returns the number of by