mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
vmm: Seperate the CPUID setup from the CpuManager::new()
This allows the decoupling of CpuManager and MemoryManager. See: #4761 Signed-off-by: Rob Bradford <robert.bradford@intel.com>
This commit is contained in:
+2
-2
@@ -1505,7 +1505,7 @@ impl Vmm {
|
||||
let common_cpuid = {
|
||||
let phys_bits = vm::physical_bits(vm_config.lock().unwrap().cpus.max_phys_bits);
|
||||
arch::generate_common_cpuid(
|
||||
hypervisor,
|
||||
&hypervisor,
|
||||
None,
|
||||
None,
|
||||
phys_bits,
|
||||
@@ -1695,7 +1695,7 @@ impl Vmm {
|
||||
|
||||
let phys_bits = vm::physical_bits(vm_config.cpus.max_phys_bits);
|
||||
arch::generate_common_cpuid(
|
||||
self.hypervisor.clone(),
|
||||
&self.hypervisor.clone(),
|
||||
None,
|
||||
None,
|
||||
phys_bits,
|
||||
|
||||
Reference in New Issue
Block a user