Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F163238619
D55766.id173427.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
664 B
Referenced Files
None
Subscribers
None
D55766.id173427.diff
View Options
diff --git a/sys/dev/virtio/virtqueue.c b/sys/dev/virtio/virtqueue.c
--- a/sys/dev/virtio/virtqueue.c
+++ b/sys/dev/virtio/virtqueue.c
@@ -565,6 +565,9 @@
/* 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);
@@ -960,6 +963,9 @@
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
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Jul 22, 8:06 AM (56 m, 54 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
35355551
Default Alt Text
D55766.id173427.diff (664 B)
Attached To
Mode
D55766: virtio: Restore mb() calls
Attached
Detach File
Event Timeline
Log In to Comment