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.
Enums§
- Command 🔒Commands used in vmm-swap feature internally sent to the monitor process from the main and other processes.
- State 🔒
- Token 🔒
Constants§
- The max size of chunks to swap out/in at once.
- The max pages to trim at once.
Traits§
- Create a new SwapDeviceUffdSender which is passed to the forked child process.
Functions§
- Returns count of pages active on the guest memory.
- The main thread of the monitor process.