vmm: memory_manager: Move the restoration of guest memory later

Rather than filling the guest memory from a file at the point of the the
guest memory region being created instead fill from the file later. This
simplifies the region creation code but also adds flexibility for
sourcing the guest memory from a source other than an on disk file.

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
Rob Bradford
2020-10-30 10:26:31 +00:00
committed by Samuel Ortiz
parent 7dcd3aff05
commit cb88ceeae8
2 changed files with 28 additions and 38 deletions

View File

@@ -639,7 +639,6 @@ impl Vm {
let memory_manager = MemoryManager::new(
vm.clone(),
&config.lock().unwrap().memory.clone(),
None,
false,
phys_bits,
)