cloud-hypervisor/virtio-devices/src
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
..
transport misc: Use a more relaxed memory model when possible 2020-12-02 19:04:30 +01:00
vhost_user pci, virtio-devices: Fix rust 1.48 clippy warnings 2020-11-20 17:09:28 +01:00
vsock pci, virtio-devices: Fix rust 1.48 clippy warnings 2020-11-20 17:09:28 +01:00
balloon.rs misc: Use a more relaxed memory model when possible 2020-12-02 19:04:30 +01:00
block_io_uring.rs misc: Use a more relaxed memory model when possible 2020-12-02 19:04:30 +01:00
block.rs misc: Use a more relaxed memory model when possible 2020-12-02 19:04:30 +01:00
console.rs misc: Use a more relaxed memory model when possible 2020-12-02 19:04:30 +01:00
device.rs virtio-balloon: Add memory_actual_size to vm.info to show memory actual size 2020-10-01 17:46:30 +02:00
epoll_helper.rs virtio-devices: Acknowledge a device being paused 2020-08-13 14:52:18 +02:00
iommu.rs ch: Fix various misspelled words 2020-09-23 08:59:31 +01:00
lib.rs virtio-devices: Add simple virtio-watchdog device 2020-10-21 16:02:39 +01:00
mem.rs misc: Use a more relaxed memory model when possible 2020-12-02 19:04:30 +01:00
net_util.rs ch: Fix various misspelled words 2020-09-23 08:59:31 +01:00
net.rs virtio-devices: net: Port to VirtioCommon 2020-09-05 10:06:39 +01:00
pmem.rs virtio: Replace some repr(C, packed) with repr(C) 2020-10-07 22:11:36 +02:00
rng.rs virtio-devices: rng: Port to VirtioCommon 2020-09-05 10:06:39 +01:00
seccomp_filters.rs virtio-devices: seccomp_filters: Add fsync to block io_uring filter 2020-10-27 10:53:54 +00:00
watchdog.rs virtio-devices: Add simple virtio-watchdog device 2020-10-21 16:02:39 +01:00