MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / snapshot

Method snapshot

devices/src/ivshmem.rs:407–414  ·  view source on GitHub ↗

The snapshot/restore (also live migration) support only work for ivshmem-plain mode. Additional work is needed for supporting ivshmem-doorbell.

(&mut self)

Source from the content-addressed store, hash-verified

405 // The snapshot/restore (also live migration) support only work for ivshmem-plain mode.
406 // Additional work is needed for supporting ivshmem-doorbell.
407 fn snapshot(&mut self) -> std::result::Result<Snapshot, MigratableError> {
408 let mut snapshot = Snapshot::new_from_state(&self.state())?;
409
410 // Snapshot PciConfiguration
411 snapshot.add_snapshot(self.configuration.id(), self.configuration.snapshot()?);
412
413 Ok(snapshot)
414 }
415}
416
417impl Transportable for IvshmemDevice {}

Callers

nothing calls this directly

Calls 3

add_snapshotMethod · 0.80
stateMethod · 0.45
idMethod · 0.45

Tested by

no test coverage detected