kvm: qemu: virtio: split some helpers out of virtqueue_pop()
commitf90131e6df2e90deaa02cded0cbd70a8892e2fe1
authorMark McLoughlin <markmc@redhat.com>
Wed, 26 Nov 2008 14:50:36 +0000 (26 14:50 +0000)
committerAvi Kivity <avi@redhat.com>
Thu, 27 Nov 2008 12:44:26 +0000 (27 14:44 +0200)
tree116c2f310cb421d0f52728701b903d1c6f81d8da
parentd4d16407220e820e1ebc788561c0cb29679ec3be
kvm: qemu: virtio: split some helpers out of virtqueue_pop()

The mergeable receive buffer scheme will introduce a new function
which peeks at how much buffer space is available in the queue.

Split out some helper functions from virtqueue_pop() for that purpose.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
qemu/hw/virtio.c