]> Git Repo - qemu.git/commit - hw/virtio/virtio.c
virtio: check for vring setup in virtio_queue_empty
authorPaolo Bonzini <[email protected]>
Thu, 23 Feb 2017 08:51:30 +0000 (09:51 +0100)
committerMichael S. Tsirkin <[email protected]>
Thu, 2 Mar 2017 05:14:27 +0000 (07:14 +0200)
commitdd3dd4ba7b949662d2c67a4c041549b3d79c4b0e
tree8d3a2ed7c07e11a224d84b21cd7003470f58248d
parent42697d88de6bdf44c6eb51d1ee508abf0a59bccb
virtio: check for vring setup in virtio_queue_empty

If the vring has not been set up, there is nothing in the virtqueue.
virtio_queue_host_notifier_aio_poll calls virtio_queue_empty even in
this case; we have to filter it out just like virtio_queue_notify_aio_vq.

Reported-by: Gerd Hoffmann <[email protected]>
Tested-by: Alex Williamson <[email protected]>
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Michael S. Tsirkin <[email protected]>
Signed-off-by: Michael S. Tsirkin <[email protected]>
Tested-by: Laszlo Ersek <[email protected]>
Tested-by: Cornelia Huck <[email protected]>
hw/virtio/virtio.c
This page took 0.024901 seconds and 4 git commands to generate.