linux/drivers/s390/kvm
Halil Pasic a707bc57cd s390/virtio: handle find on invalid queue gracefully
commit 3438b2c039 upstream.

A queue with a capacity of zero is clearly not a valid virtio queue.
Some emulators report zero queue size if queried with an invalid queue
index. Instead of crashing in this case let us just return -ENOENT. To
make that work properly, let us fix the notifier cleanup logic as well.

Signed-off-by: Halil Pasic <pasic@linux.ibm.com>
Signed-off-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
[bwh: Backported to 3.16: adjust filename]
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
History 2019-07-09 22:04:13 +01:00
..
kvm_virtio.c s390/irq: Use defines for external interruption codes 2014-04-03 14:30:52 +02:00
Makefile KVM: s390: Add a channel I/O based virtio transport driver. 2012-12-18 14:37:13 +02:00
virtio_ccw.c s390/virtio: handle find on invalid queue gracefully 2019-07-09 22:04:13 +01:00