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 <sebastien.boeuf@intel.com>
This commit is contained in:
Sebastien Boeuf 2021-10-05 16:18:28 +02:00 committed by Bo Chen
parent 6a55768d94
commit 1e1e61614c

View File

@ -1074,7 +1074,7 @@ impl MemoryManager {
phys_bits,
#[cfg(feature = "tdx")]
false,
None,
Some(&mem_snapshot),
)?;
mm.lock()