summaryrefslogtreecommitdiff
path: root/error_int.h
diff options
context:
space:
mode:
authorMichael S. Tsirkin <mst@redhat.com>2012-04-23 14:11:14 +0300
committerMichael S. Tsirkin <mst@redhat.com>2012-04-25 10:53:47 +0300
commit92045d80badc43c9f95897aad675dc7ef17a3b3f (patch)
tree5325f5d23cb1d1a270b10fc0e833fd2d9429c3fb /error_int.h
parenta281ebc11a6917fbc27e1a93bb5772cd14e241fc (diff)
virtio: add missing mb() on enable notification
This fixes an issue dual to the one fixed by patch 'virtio: add missing mb() on notification' and applies on top. In this case, to enable vq kick to exit to host, qemu writes out used flag then reads the avail index. if these are reordered we get a race: host avail index read: ring is empty guest avail index write guest flag read: exit disabled host used flag write: enable exit which results in a lost exit: host will never be notified about the avail index update. Again, happens in the field but only seems to trigger on some specific hardware. Insert an smp_mb barrier operation to ensure the correct ordering. Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Diffstat (limited to 'error_int.h')
0 files changed, 0 insertions, 0 deletions