repository: C:/dev/kvm-guest-drivers-windows
branch: master
commit b68b7671ab3dd07f7f16e819db2d4060bbaeb901
Author: Yan Vugenfirer <yvuge...@redhat.com>
Date:   Sun Nov 1 15:23:20 2009 +0200

    [WIN-GUEST-DRIVERS] viostor driver.Add memory read barrier - synch with fix 
for Linux guests by Michael S. Tsirkin<m...@redhat.com>
    
         Signed-off-by: Vadim Rozenfeld<vroze...@redhat.com>

diff --git a/viostor/virtio_ring.c b/viostor/virtio_ring.c
index d099bb8..2911cef 100644
--- a/viostor/virtio_ring.c
+++ b/viostor/virtio_ring.c
@@ -237,6 +237,8 @@ vring_get_buf(
         return NULL;
     }
 
+    rmb();
+
     i = vq->vring.used->ring[vq->last_used_idx%vq->vring.num].id;
     *len = vq->vring.used->ring[vq->last_used_idx%vq->vring.num].len;
 
--
To unsubscribe from this list: send the line "unsubscribe kvm-commits" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to