cloud-hypervisor/hypervisor
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 hypervisor: emulator: Format instructions on error paths 2020-12-01 11:13:54 +01:00