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

Method snapshot

pci/src/vfio_user.rs:535–542  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

533 }
534
535 fn snapshot(&mut self) -> std::result::Result<Snapshot, MigratableError> {
536 let mut vfio_pci_dev_snapshot = Snapshot::default();
537
538 // Snapshot VfioCommon
539 vfio_pci_dev_snapshot.add_snapshot(self.common.id(), self.common.snapshot()?);
540
541 Ok(vfio_pci_dev_snapshot)
542 }
543}
544impl Transportable for VfioUserPciDevice {}
545impl Migratable for VfioUserPciDevice {}

Callers

nothing calls this directly

Calls 2

add_snapshotMethod · 0.80
idMethod · 0.45

Tested by

no test coverage detected