Skip to main content

Module types

Module types 

Source
Expand description

Common types used across the hypervisor crate.

Structs§

Arm64Registers
ARM64 register state for snapshots.
BalloonStats
Memory balloon statistics.
DeviceSnapshot
Device snapshot state.
DirtyPageInfo
Dirty page tracking info.
MemoryRegionSnapshot
Memory region info for snapshots.
PlatformCapabilities
Platform capabilities reported by the hypervisor.
Registers
CPU register state.
VcpuSnapshot
vCPU snapshot state.
VirtioDeviceConfig
VirtIO device configuration for attaching to a VM.
VmSnapshot
Full VM snapshot metadata.

Enums§

CpuArch
CPU architecture.
VcpuExit
Reason for vCPU exit.
VirtioDeviceType
VirtIO device types.

Functions§

default_vm_cpu_count
Returns a sensible default VM vCPU count: the host’s logical core count.
default_vm_memory_size
Returns a sensible default VM memory size based on host physical memory.
host_memory_size
Returns the effective memory limit for the host process in bytes.
warn_memory_exceeds_host_half
Emits a warning if memory_size exceeds 50% of host RAM.