cloud-hypervisor/virtio-devices
Rob Bradford ffaab46934 misc: Use a more relaxed memory model when possible
When a total ordering between multiple atomic variables is not required
then use Ordering::Acquire with atomic loads and Ordering::Release with
atomic stores.

This will improve performance as this does not require a memory fence
on x86_64 which Ordering::SeqCst will use.

Add a comment to the code in the vCPU handling code where it operates on
multiple atomics to explain why Ordering::SeqCst is required.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-12-02 19:04:30 +01:00
..
src misc: Use a more relaxed memory model when possible 2020-12-02 19:04:30 +01:00
Cargo.toml cargo: Move to crates.io vm-memory 0.4.0 2020-11-23 10:55:13 +01:00