mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
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:
committed by
Samuel Ortiz
parent
7dcd3aff05
commit
cb88ceeae8
@@ -639,7 +639,6 @@ impl Vm {
|
||||
let memory_manager = MemoryManager::new(
|
||||
vm.clone(),
|
||||
&config.lock().unwrap().memory.clone(),
|
||||
None,
|
||||
false,
|
||||
phys_bits,
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user