Module swap::controller 
source ยท Expand description
crate for the vmm-swap feature.
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.
 - VmmSwapResult ๐
 
Enumsยง
- Command ๐Commands used in vmm-swap feature internally sent to the monitor process from the main and other processes.
 - State ๐
 - Token ๐
 
Constantsยง
- MAX_SWAP_CHUNK_SIZE ๐The max size of chunks to swap out/in at once.
 - MAX_TRIM_PAGES ๐The max pages to trim at once.
 
Traitsยง
- Create a new SwapDeviceUffdSender which is passed to the forked child process.
 
Functionsยง
- abort_background_job ๐
 - count_resident_pages ๐Returns count of pages active on the guest memory.
 - handle_vmm_swap ๐
 - monitor_process ๐The main thread of the monitor process.