Function vm_control::do_restore 
source · pub fn do_restore(
    restore_path: &Path,
    kick_vcpus: impl Fn(VcpuControl),
    kick_vcpu: impl Fn(VcpuControl, usize),
    irq_handler_control: &Tube,
    device_control_tube: &Tube,
    vcpu_size: usize,
    restore_irqchip: impl FnMut(AnySnapshot) -> Result<()>,
    require_encrypted: bool,
    suspended_pvclock_state: &mut Option<ClockState>,
    vm: &impl Vm,
) -> Result<()>Expand description
Restore the VM to the snapshot at restore_path.
Same as VmRequest::execute with a VmRequest::Restore. Exposed as a separate function
because not all the VmRequest::execute arguments are available in the “cold restore” flow.