Function vm_control::do_snapshot
source · pub(crate) fn do_snapshot(
snapshot_path: PathBuf,
kick_vcpus: impl Fn(VcpuControl),
irq_handler_control: &Tube,
device_control_tube: &Tube,
vcpu_size: usize,
snapshot_irqchip: impl Fn() -> Result<Value>,
compress_memory: bool,
encrypt: bool,
suspended_pvclock_state: &mut Option<ClockState>
) -> Result<()>
Expand description
Snapshot the VM to file at snapshot_path