Expand description
crate for the vmm-swap feature.
Structsยง
- Swap
Controller - SwapController provides APIs to control vmm-swap.
- Swap
Device Helper - Helper to create SwapDeviceUffdSender from child processes (e.g. JailWarden for hotplug devices).
- Swap
Device Uffd Sender - Create a new userfaultfd and send it to the monitor process.
- VmmSwap
Result ๐
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ยง
- Prepare
Fork - 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