qemu-e2k/hw/block/dataplane
Fam Zheng 0793169870 virtio: Report real progress in VQ aio poll handler
In virtio_queue_host_notifier_aio_poll, not all "!virtio_queue_empty()"
cases are making true progress.

Currently the offending one is virtio-scsi event queue, whose handler
does nothing if no event is pending. As a result aio_poll() will spin on
the "non-empty" VQ and take 100% host CPU.

Fix this by reporting actual progress from virtio queue aio handlers.

Reported-by: Ed Swierk <eswierk@skyportsystems.com>
Signed-off-by: Fam Zheng <famz@redhat.com>
Tested-by: Ed Swierk <eswierk@skyportsystems.com>
Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com>
Reviewed-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2017-02-17 21:52:30 +02:00
..
Makefile.objs dataplane: delete IOQueue since it is no longer used 2014-06-04 09:56:12 +02:00
trace-events trace: clean up trace-events files 2017-01-31 17:12:15 +00:00
virtio-blk.c virtio: Report real progress in VQ aio poll handler 2017-02-17 21:52:30 +02:00
virtio-blk.h virtio-blk: always use dataplane path if ioeventfd is active 2016-10-30 19:51:32 +02:00