summaryrefslogtreecommitdiff
path: root/usr/src/cmd/bhyve/virtio.c
diff options
context:
space:
mode:
Diffstat (limited to 'usr/src/cmd/bhyve/virtio.c')
-rw-r--r--usr/src/cmd/bhyve/virtio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr/src/cmd/bhyve/virtio.c b/usr/src/cmd/bhyve/virtio.c
index 47a3ed29ba..2d78b016c6 100644
--- a/usr/src/cmd/bhyve/virtio.c
+++ b/usr/src/cmd/bhyve/virtio.c
@@ -428,7 +428,8 @@ vq_relchain(struct vqueue_info *vq, uint16_t idx, uint32_t iolen)
/*
* Ensure the used descriptor is visible before updating the index.
- * This is necessary on ISAs with memory ordering less strict than x86.
+ * This is necessary on ISAs with memory ordering less strict than x86
+ * (and even on x86 to act as a compiler barrier).
*/
atomic_thread_fence_rel();
vuh->vu_idx = uidx;