Expand description
Save/restore utilities. Defines state structures for saving/restoring a Firecracker microVM.
Structs§
- Guest
Region Uffd Mapping - This describes the mapping between Firecracker base virtual address and offset in the buffer or file backend for a guest memory region. It is used to tell an external process/thread where to populate the guest memory data for this range.
- Microvm
State - Contains the necessary state for saving/restoring a microVM.
- VmInfo
- Holds information related to the VM that is not part of VmState.
Enums§
- Create
Snapshot Error - Errors associated with creating a snapshot.
- Guest
Memory From File Error - Error type for [
guest_memory_from_file]. - Guest
Memory From Uffd Error - Error type for [
guest_memory_from_uffd] - Microvm
State Error - Errors related to saving and restoring Microvm state.
- Restore
From Snapshot Error - Error type for
restore_from_snapshot. - Restore
From Snapshot Guest Memory Error - Sub-Error type for
restore_from_snapshotto contain eitherGuestMemoryFromFileErrororGuestMemoryFromUffdErrorwithinRestoreFromSnapshotError. - Snap
Shot State Sanity Check Error - Error type for
snapshot_state_sanity_check. - Snapshot
State From File Error - Error type for [
snapshot_state_from_file]
Constants§
- SNAPSHOT_
VERSION - Snapshot version
Functions§
- create_
snapshot - Creates a Microvm snapshot.
- restore_
from_ snapshot - Loads a Microvm snapshot producing a ‘paused’ Microvm.
- snapshot_
state_ sanity_ check - Performs sanity checks against the state file and returns specific errors.
- validate_
cpu_ vendor - Validates that snapshot CPU vendor matches the host CPU vendor.