aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/virtio
diff options
context:
space:
mode:
authorAndrew Turner <andrew@FreeBSD.org>2026-03-10 19:09:41 +0000
committerAndrew Turner <andrew@FreeBSD.org>2026-03-10 19:09:41 +0000
commit522012c8bd079879b82aaa403e4da3c1ab9fc8a9 (patch)
tree6497bd85417dc4d71cb3899ce8635a6113168fde /sys/dev/virtio
parentd99e725c26a7745aa349eab01ae56ca630b6d0f5 (diff)
Diffstat (limited to 'sys/dev/virtio')
-rw-r--r--sys/dev/virtio/virtqueue.c6
1 files changed, 0 insertions, 6 deletions
diff --git a/sys/dev/virtio/virtqueue.c b/sys/dev/virtio/virtqueue.c
index b7fdb4703ccb..dbd55e02e091 100644
--- a/sys/dev/virtio/virtqueue.c
+++ b/sys/dev/virtio/virtqueue.c
@@ -565,9 +565,6 @@ virtqueue_notify(struct virtqueue *vq)
/* Ensure updated avail->idx is visible to host. */
bus_dmamap_sync(vq->vq_ring_dmat, vq->vq_ring_mapp,
BUS_DMASYNC_PREWRITE);
-#if defined(__i386__) || defined(__amd64__)
- mb();
-#endif
if (vq_ring_must_notify_host(vq))
vq_ring_notify_host(vq);
@@ -963,9 +960,6 @@ vq_ring_enable_interrupt(struct virtqueue *vq, uint16_t ndesc)
bus_dmamap_sync(vq->vq_ring_dmat, vq->vq_ring_mapp,
BUS_DMASYNC_PREWRITE);
-#if defined(__i386__) || defined(__amd64__)
- mb();
-#endif
/*
* Enough items may have already been consumed to meet our threshold