linux/drivers/virtio
Jason Wang a72caae218 virtio: correct the memory barrier in virtqueue_kick_prepare()
Use virtio_mb() to make sure the available index to be exposed before
checking the the avail event. Otherwise we may get stale value of
avail event in guest and never kick the host after.

Note: this fixes a bug introduced by ee7cd8981e.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
2012-01-28 08:10:23 +10:30
..
Kconfig virtio: add HAS_IOMEM dependency to MMIO platform bus driver 2011-11-24 13:04:47 +10:30
Makefile virtio: Add platform bus driver for memory mapped virtio device 2011-11-02 11:41:01 +10:30
config.c
virtio.c virtio: Add module.h to drivers/virtio users. 2011-10-31 19:32:14 -04:00
virtio_balloon.c virtio: balloon: Add freeze, restore handlers to support S4 2012-01-12 15:44:47 +10:30
virtio_mmio.c virtio: harsher barriers for rpmsg. 2012-01-12 15:44:42 +10:30
virtio_pci.c virtio: pci: add PM notification handlers for restore, freeze, thaw, poweroff 2012-01-12 15:44:44 +10:30
virtio_ring.c virtio: correct the memory barrier in virtqueue_kick_prepare() 2012-01-28 08:10:23 +10:30