Virtio: split some helpers out of virtqueue_pop()
commit04fea98928592f95462f3dcf297aa078ff633956
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)
tree551d64a3a6751a1961193c80380c65056aa476dd
parent5fc76e2e2d6eb99f74f753e2f1cea18244d65b8c
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>
hw/virtio.c