vmm: Provide an owned Snapshot rather than a reference

Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf
2022-12-01 17:00:24 +01:00
committed by Bo Chen
parent a4160c1fef
commit 2e01bf7f74
2 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -1264,7 +1264,7 @@ impl Vmm {
None,
None,
None,
Some(&snapshot),
Some(snapshot),
)
.map_err(|e| {
MigratableError::MigrateReceive(anyhow!("Error creating VM from snapshot: {:?}", e))