From 1e1e61614ce8d872396eb92311f6399efd84bd19 Mon Sep 17 00:00:00 2001 From: Sebastien Boeuf Date: Tue, 5 Oct 2021 16:18:28 +0200 Subject: [PATCH] vmm: memory_manager: Leverage new codepath for snapshot/restore Now that all the pieces are in place, we can restore a VM with the new codepath that restores properly all memory regions, allowing for ACPI memory hotplug to work properly with snapshot/restore feature. Signed-off-by: Sebastien Boeuf --- vmm/src/memory_manager.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmm/src/memory_manager.rs b/vmm/src/memory_manager.rs index 2cf68e4c1..35050f0af 100644 --- a/vmm/src/memory_manager.rs +++ b/vmm/src/memory_manager.rs @@ -1074,7 +1074,7 @@ impl MemoryManager { phys_bits, #[cfg(feature = "tdx")] false, - None, + Some(&mem_snapshot), )?; mm.lock()