mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-05-11 05:19:58 +00:00
hv: execute vmxon instruction fail don't panic system
Don't panic system when execute vmxon instruction failed. And let's follow that only print error info when error return from library function. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -156,10 +156,8 @@ int hv_main(int cpu_id)
|
||||
|
||||
/* Enable virtualization extensions */
|
||||
ret = exec_vmxon_instr();
|
||||
if (ret != 0) {
|
||||
pr_err("%s, Unable to enable VMX!\n", __func__);
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
/* X2APIC mode is disabled by default. */
|
||||
x2apic_enabled = false;
|
||||
|
||||
Reference in New Issue
Block a user