Expand description
Common types used across the hypervisor crate.
Structs§
- Arm64
Registers - ARM64 register state for snapshots.
- Balloon
Stats - Memory balloon statistics.
- Device
Snapshot - Device snapshot state.
- Dirty
Page Info - Dirty page tracking info.
- Memory
Region Snapshot - Memory region info for snapshots.
- Platform
Capabilities - Platform capabilities reported by the hypervisor.
- Registers
- CPU register state.
- Vcpu
Snapshot - vCPU snapshot state.
- Virtio
Device Config VirtIOdevice configuration for attaching to a VM.- VmSnapshot
- Full VM snapshot metadata.
Enums§
- CpuArch
- CPU architecture.
- Vcpu
Exit - Reason for vCPU exit.
- Virtio
Device Type VirtIOdevice 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_sizeexceeds 50% of host RAM.