Module controller

Source
Expand description

crate for the vmm-swap feature.

Structsยง

SwapController
SwapController provides APIs to control vmm-swap.
SwapDeviceHelper
Helper to create SwapDeviceUffdSender from child processes (e.g. JailWarden for hotplug devices).
SwapDeviceUffdSender
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ยง

PrepareFork
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_enable_command ๐Ÿ”’
handle_vmm_swap ๐Ÿ”’
monitor_process ๐Ÿ”’
The main thread of the monitor process.
move_guest_to_staging ๐Ÿ”’
regions_from_guest_memory ๐Ÿ”’