Add VIRTIO_F_NOTIFY_ON_EMPTY
commitcb59640964e399d7be43dc623cc02fdd1f851382
authorMark McLoughlin <markmc@redhat.com>
Mon, 11 Aug 2008 20:12:06 +0000 (11 21:12 +0100)
committerAvi Kivity <avi@qumranet.com>
Wed, 13 Aug 2008 09:12:03 +0000 (13 12:12 +0300)
tree9522eddc94edad7853c18cd2a3bfe338ed97d624
parent102f29c3a03f4643cda3cee0482b1f410888d60e
Add VIRTIO_F_NOTIFY_ON_EMPTY

Set the VIRTIO_F_NOTIFY_ON_EMPTY feature bit so the
guest can rely on us notifying them when the queue
is empty.

Also, only notify when the available queue is empty
*and* when we've finished with all the buffers we
had detached. Right now, when the queue is empty,
we notify the guest for every used buffer.

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