cloud-hypervisor/vm-virtio/src
Xie Yongji 72b736153e vm-virtio: Fix update_avail_event() memory ordering
We should use full memory barrier to ensure both guest and us
can see the correct avail_idx and avail_event_idx. Something
like this pattern:

VM:                           CLH:
update vring.avail->idx       update avail_event_idx
mb()                          mb()
read avail_event_idx          read vring.avail->idx

Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
2021-01-20 08:32:56 +01:00
..
lib.rs vm-virtio: Add (temporary) number allocation for virtio-watchdog 2020-10-21 16:02:39 +01:00
queue.rs vm-virtio: Fix update_avail_event() memory ordering 2021-01-20 08:32:56 +01:00