mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-22 07:51:16 +00:00
vm-virtio: queue: fix a barrier comment at update_avail_event
The barrier had a comment coming from other context. Adjust it to be relevant to its own context. Signed-off-by: Sergio Lopez <slp@redhat.com>
This commit is contained in:
parent
e0bdfe826e
commit
401e1d2489
@ -543,7 +543,7 @@ impl Queue {
|
|||||||
None => warn!("Can't update avail_event"),
|
None => warn!("Can't update avail_event"),
|
||||||
}
|
}
|
||||||
|
|
||||||
// This fence ensures all descriptor writes are visible before the index update is.
|
// This fence ensures the guest sees the value we've just written.
|
||||||
fence(Ordering::Release);
|
fence(Ordering::Release);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user