pub fn load_snapshot(
    event_manager: &mut EventManager,
    seccomp_filter: BpfProgramRef,
    params: &LoadSnapshotParams,
    version_map: VersionMap,
) -> std::result::Result<Arc<Mutex<Vmm>>, LoadSnapshotError> {
    use self::LoadSnapshotError::*;
    let track_dirty_pages = params.enable_diff_snapshots;
    let microvm_state = snapshot_state_from_file(&params.snapshot_path, version_map)?;
    let guest_memory = guest_memory_from_file(
        &params.mem_file_path,
        &microvm_state.memory_state,
        track_dirty_pages,
    )?;
    builder::build_microvm_from_snapshot(
        event_manager,
        microvm_state,
        guest_memory,
        track_dirty_pages,
        seccomp_filter,
    )
    .map_err(BuildMicroVm)
}
/// Loads a Microvm snapshot producing a 'paused' Microvm.
Loads a Microvm snapshot producing a 'paused' Microvm.
Loads a Microvm snapshot producing a ' paused ' Microvm .
pub fn load_snapshot(
    event_manager: &mut EventManager,
    seccomp_filter: BpfProgramRef,
    params: &LoadSnapshotParams,
    version_map: VersionMap,
) -> std::result::Result<Arc<Mutex<Vmm>>, LoadSnapshotError> {
    use self::LoadSnapshotError::*;
    let track_dirty_pages = params.enable_diff_snapshots;
    let microvm_state = snapshot_state_from_file(&params.snapshot_path, version_map)?;
    let guest_memory = guest_memory_from_file(
        &params.mem_file_path,
        &microvm_state.memory_state,
        track_dirty_pages,
    )?;
    builder::build_microvm_from_snapshot(
        event_manager,
        microvm_state,
        guest_memory,
        track_dirty_pages,
        seccomp_filter,
    )
    .map_err(BuildMicroVm)
}
pub fn load_snapshot ( event_manager : & mut EventManager , seccomp_filter : BpfProgramRef , params : & LoadSnapshotParams , version_map : VersionMap , ) -> std :: result :: Result < Arc < Mutex < Vmm > > , LoadSnapshotError > { use self :: LoadSnapshotError :: * ; let track_dirty_pages = params . enable_diff_snapshots ; let microvm_state = snapshot_state_from_file ( & params . snapshot_path , version_map ) ? ; let guest_memory = guest_memory_from_file ( & params . mem_file_path , & microvm_state . memory_state , track_dirty_pages , ) ? ; builder :: build_microvm_from_snapshot ( event_manager , microvm_state , guest_memory , track_dirty_pages , seccomp_filter , ) . map_err ( BuildMicroVm ) }
Loads a Microvm snapshot producing a 'paused' Microvm.
Loads a Microvm snapshot producing a ' paused ' Microvm .
event_manager
&mut EventManager
seccomp_filter
BpfProgramRef
params
&LoadSnapshotParams
version_map
VersionMap
event_manager
&mut EventManager
seccomp_filter
BpfProgramRef
params
&LoadSnapshotParams
version_map
VersionMap