Crate swap

Source
Expand description

crate for the vmm-swap feature.

Modulesยง

controller ๐Ÿ”’
crate for the vmm-swap feature.
file ๐Ÿ”’
file_truncator ๐Ÿ”’
page_handler
PageHandler manages the page states of multiple regions.
pagesize ๐Ÿ”’
Helpers to calculate values derived from page size.
present_list ๐Ÿ”’
processes ๐Ÿ”’
staging ๐Ÿ”’
uffd_list ๐Ÿ”’
userfaultfd
Provides wrapper of userfaultfd crate for vmm-swap feature.
worker
Multi-thread worker.

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.
SwapMetrics
Current metrics of vmm-swap.
SwapStateTransition
Latency and number of pages of swap operations (move to staging, swap out, swap in).
SwapStatus
The response to crosvm swap status command.

Enumsยง

SwapState
Current state of vmm-swap.

Traitsยง

PrepareFork
Create a new SwapDeviceUffdSender which is passed to the forked child process.