rcore-os / virtio-drivers

VirtIO guest drivers in Rust.
MIT License
209 stars 63 forks source link

Use atomic reads and writes for available and used ring. #128

Closed qwandor closed 6 months ago

qwandor commented 6 months ago

This is necessary to correctly synchronise with the host. The previous fences were not correct.

Fixes #125.

fslongjin commented 6 months ago

It run wells in both examples/riscv and my test case.