qemu/virtio: make wmb compiler barrier + comments
commit79758e95d7f018dabd726bf7eb8cdd087692410c
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 26 Oct 2009 13:17:15 +0000 (26 15:17 +0200)
committerAnthony Liguori <aliguori@us.ibm.com>
Fri, 30 Oct 2009 13:39:34 +0000 (30 08:39 -0500)
tree2cf8a7cf6696a35bb3e0f8ad3d9bf8df48894c0b
parent1e5b9d2fccb205ed8fc84fb38945b8fb3d225640
qemu/virtio: make wmb compiler barrier + comments

wmb must be at least a compiler barrier, even without SMP.
Further, we likely need some rmb()/mb() as well:
I have not audited the code but lguest has mb(),
add a comment for now.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Anthony Liguori <aliguori@us.ibm.com>
hw/virtio.c