linux/drivers/virtio
Amit Shah b3258ff1d6 virtio: Decrement avail idx on buffer detach
When detaching a buffer from a vq, the avail.idx value should be
decremented as well.

This was noticed by hot-unplugging a virtio console port and then
plugging in a new one on the same number (re-using the vqs which were
just 'disowned').  qemu reported

   'Guest moved used index from 0 to 256'

when any IO was attempted on the new port.

CC: stable@kernel.org
Reported-by: juzhang <juzhang@redhat.com>
Signed-off-by: Amit Shah <amit.shah@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
2011-04-21 22:57:00 +09:30
..
config.c
Kconfig virtio: balloon driver 2008-02-04 23:50:13 +11:00
Makefile virtio: balloon driver 2008-02-04 23:50:13 +11:00
virtio_balloon.c virtio_balloon: use virtqueue_xxx wrappers 2010-05-19 22:15:41 +09:30
virtio_pci.c virtio: remove virtio-pci root device 2011-01-20 21:37:30 +10:30
virtio_ring.c virtio: Decrement avail idx on buffer detach 2011-04-21 22:57:00 +09:30
virtio.c virtio: fix format of sysfs driver/vendor files 2010-11-24 15:21:12 +10:30