mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-05-05 12:22:53 +00:00
hv: create vm failed don't panic system
Just return error number to the caller. Signed-off-by: Li, Fei1 <fei1.li@intel.com> Reviewed-by: Kevin Tian <kevin.tian@intel.com>
This commit is contained in:
@@ -159,8 +159,11 @@ int hv_main(int cpu_id)
|
||||
/* X2APIC mode is disabled by default. */
|
||||
x2apic_enabled = false;
|
||||
|
||||
if (is_vm0_bsp(cpu_id))
|
||||
prepare_vm0();
|
||||
if (is_vm0_bsp(cpu_id)) {
|
||||
ret = prepare_vm0();
|
||||
if (ret != 0)
|
||||
return ret;
|
||||
}
|
||||
|
||||
default_idle();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user