cloud-hypervisor/vmm/src
Rob Bradford b2589d4f3f vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>>
This allows us to change the memory map that is being used by the
devices via an atomic swap (by replacing the map with another one). The
ArcSwap provides the mechanism for atomically swapping from to another
whilst still giving good read performace. It is inside an Arc so that we
can use a single ArcSwap for all users.

Not covered by this change is replacing the GuestMemoryMmap itself.

This change also removes some vertical whitespace from use blocks in the
files that this commit also changed. Vertical whitespace was being used
inconsistently and broke rustfmt's behaviour of ordering the imports as
it would only do it within the block.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2020-01-02 13:20:11 +00:00
..
api vmm: api: Adjust FsConfig for OpenAPI 2019-12-11 15:50:24 +00:00
acpi.rs vmm: Delegate device related ACPI DSDT table work to DeviceManager 2019-12-06 17:44:00 +00:00
config.rs vmm: config: Derive Debug and PartialEq for configuration structures 2019-12-16 16:48:59 +01:00
cpu.rs vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>> 2020-01-02 13:20:11 +00:00
device_manager.rs vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>> 2020-01-02 13:20:11 +00:00
lib.rs vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>> 2020-01-02 13:20:11 +00:00
memory_manager.rs vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>> 2020-01-02 13:20:11 +00:00
vm.rs vm-virtio, vmm, vfio: Store GuestMemoryMmap in an Arc<ArcSwap<T>> 2020-01-02 13:20:11 +00:00