Expand description
crate for the vmm-swap feature.
Modulesยง
- controller ๐crate for the vmm-swap feature.
 - file ๐
 - file_truncator ๐
 - PageHandler manages the page states of multiple regions.
 - pagesize ๐Helpers to calculate values derived from page size.
 - present_list ๐
 - processes ๐
 - staging ๐
 - uffd_list ๐
 - Provides wrapper of userfaultfd crate for vmm-swap feature.
 - Multi-thread worker.
 
Structsยง
- SwapController provides APIs to control vmm-swap.
 - Helper to create SwapDeviceUffdSender from child processes (e.g. JailWarden for hotplug devices).
 - Create a new userfaultfd and send it to the monitor process.
 - Current metrics of vmm-swap.
 - Latency and number of pages of swap operations (move to staging, swap out, swap in).
 - The response to
crosvm swap statuscommand. 
Enumsยง
- Current state of vmm-swap.
 
Traitsยง
- Create a new SwapDeviceUffdSender which is passed to the forked child process.