mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Pass MemoryManager through CpuManager creation
Instead of passing the GuestMemoryMmap directly to the CpuManager upon its creation, it's better to pass a reference to the MemoryManager. This way we will be able to know if SGX EPC region along with one or multiple sections are present. Signed-off-by: Sebastien Boeuf <sebastien.boeuf@intel.com>
This commit is contained in:
committed by
Samuel Ortiz
parent
2b06ce0ed4
commit
1603786374
+1
-1
@@ -293,7 +293,7 @@ impl Vm {
|
||||
let cpu_manager = cpu::CpuManager::new(
|
||||
&config.lock().unwrap().cpus.clone(),
|
||||
&device_manager,
|
||||
memory_manager.lock().unwrap().guest_memory(),
|
||||
&memory_manager,
|
||||
vm.clone(),
|
||||
reset_evt,
|
||||
hypervisor,
|
||||
|
||||
Reference in New Issue
Block a user