* [PATCH] viostor driver.Add memory barrier - synch with fix for Linux guests by Michael S. Tsirkin <mst@redhat.com>
@ 2009-11-01 10:41 Vadim Rozenfeld
2009-11-01 13:29 ` Yan Vugenfirer
0 siblings, 1 reply; 2+ messages in thread
From: Vadim Rozenfeld @ 2009-11-01 10:41 UTC (permalink / raw)
To: kvm
[-- Attachment #1: Type: text/plain, Size: 753 bytes --]
repository: /home/vadimr/shares/kvm-guest-drivers-windows
branch: XP
commit 6906acfc2d5f58df43ebc9c190e1447ff6e63a01
Author: Vadim Rozenfeld<vrozenfe@redhat.com>
Date: Sun Nov 1 11:54:03 2009 +0200
[PATCH] viostor driver.Add memory read barrier - synch with fix for Linux guests by Michael S. Tsirkin<mst@redhat.com>
Signed-off-by: Vadim Rozenfeld<vrozenfe@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;
[-- Attachment #2: rmb.patch --]
[-- Type: text/plain, Size: 365 bytes --]
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;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* RE: [PATCH] viostor driver.Add memory barrier - synch with fix for Linux guests by Michael S. Tsirkin <mst@redhat.com>
2009-11-01 10:41 [PATCH] viostor driver.Add memory barrier - synch with fix for Linux guests by Michael S. Tsirkin <mst@redhat.com> Vadim Rozenfeld
@ 2009-11-01 13:29 ` Yan Vugenfirer
0 siblings, 0 replies; 2+ messages in thread
From: Yan Vugenfirer @ 2009-11-01 13:29 UTC (permalink / raw)
To: 'Vadim Rozenfeld', kvm
Committed. Thanks.
> -----Original Message-----
> From: kvm-owner@vger.kernel.org [mailto:kvm-owner@vger.kernel.org] On
> Behalf Of Vadim Rozenfeld
> Sent: Sunday, November 01, 2009 12:41 PM
> To: kvm@vger.kernel.org
> Subject: [PATCH] viostor driver.Add memory barrier - synch with fix for
> Linux guests by Michael S. Tsirkin <mst@redhat.com>
>
>
> repository: /home/vadimr/shares/kvm-guest-drivers-windows
> branch: XP
> commit 6906acfc2d5f58df43ebc9c190e1447ff6e63a01
> Author: Vadim Rozenfeld<vrozenfe@redhat.com>
> Date: Sun Nov 1 11:54:03 2009 +0200
>
> [PATCH] viostor driver.Add memory read barrier - synch with fix
> for Linux guests by Michael S. Tsirkin<mst@redhat.com>
>
> Signed-off-by: Vadim Rozenfeld<vrozenfe@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;
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2009-11-01 13:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-01 10:41 [PATCH] viostor driver.Add memory barrier - synch with fix for Linux guests by Michael S. Tsirkin <mst@redhat.com> Vadim Rozenfeld
2009-11-01 13:29 ` Yan Vugenfirer
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox