aboutsummaryrefslogtreecommitdiff
path: root/hw
diff options
context:
space:
mode:
authorEugenio Pérez <eperezma@redhat.com>2022-08-23 20:30:28 +0200
committerJason Wang <jasowang@redhat.com>2022-09-02 10:22:39 +0800
commit9e193cec5db949e4001070442a2f7de7042ef09b (patch)
tree9a4f332af4f4c7c26facb66554f99377703f5399 /hw
parent86f5f2546f03a3dfde421c715187b262e29b2848 (diff)
downloadqemu-9e193cec5db949e4001070442a2f7de7042ef09b.zip
qemu-9e193cec5db949e4001070442a2f7de7042ef09b.tar.gz
qemu-9e193cec5db949e4001070442a2f7de7042ef09b.tar.bz2
vhost: Delete useless read memory barrier
As discussed in previous series [1], this memory barrier is useless with the atomic read of used idx at vhost_svq_more_used. Deleting it. [1] https://lists.nongnu.org/archive/html/qemu-devel/2022-07/msg02616.html Signed-off-by: Eugenio Pérez <eperezma@redhat.com> Acked-by: Jason Wang <jasowang@redhat.com> Signed-off-by: Jason Wang <jasowang@redhat.com>
Diffstat (limited to 'hw')
-rw-r--r--hw/virtio/vhost-shadow-virtqueue.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/hw/virtio/vhost-shadow-virtqueue.c b/hw/virtio/vhost-shadow-virtqueue.c
index b35aeef..8df5296 100644
--- a/hw/virtio/vhost-shadow-virtqueue.c
+++ b/hw/virtio/vhost-shadow-virtqueue.c
@@ -509,9 +509,6 @@ size_t vhost_svq_poll(VhostShadowVirtqueue *svq)
if (unlikely(g_get_monotonic_time() - start_us > 10e6)) {
return 0;
}
-
- /* Make sure we read new used_idx */
- smp_rmb();
} while (true);
}