mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-13 11:33:58 +00:00
hv:check pcpu numbers during init_pcpu_pre
it will panic if phys_cpu_num > CONFIG_MAX_PCPU_NUM during init_pcpu_pre,after that no need to check it again. Tracked-On: #861 Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
@@ -420,9 +420,6 @@ int32_t detect_hardware_support(void)
|
||||
} else if (is_vmx_disabled()) {
|
||||
printf("%s, VMX can not be enabled\n", __func__);
|
||||
ret = -ENODEV;
|
||||
} else if (get_pcpu_nums() > CONFIG_MAX_PCPU_NUM) {
|
||||
printf("%s, pcpu number(%d) is out of range\n", __func__, get_pcpu_nums());
|
||||
ret = -ENODEV;
|
||||
} else if (!pcpu_has_cap(X86_FEATURE_X2APIC)) {
|
||||
printf("%s, x2APIC not supported\n", __func__);
|
||||
ret = -ENODEV;
|
||||
|
||||
Reference in New Issue
Block a user