acrn-hypervisor/hypervisor/boot
Binbin Wu 33e1149b29 hv: init: unify init logic for vm0 bsp
In current code, VM0 BSP start mode is hardcoded, in this patch VM0 BSP
start mode is decided by the boot context prepared by bootloader/BIOS.

In current code, VM0 BSP VMCS is override only on UEFI platform.
In this patch, VM0 BSP VMCS is override on both SBL & UEFI platforms.

Also restructure the code of guest init code.
In this patch, a vcpu run_context is initilaized first according to vcpu mode.
Then write the value to vmcs according to run_context value.

Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
2018-08-09 16:43:58 +08:00
..
include hv: treewide: fix 'Array has no bounds specified' 2018-08-03 12:40:21 +08:00
sbl HV: stop retrieving seed from multiboot modules 2018-07-27 11:27:46 +08:00
acpi.c hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
dmar_parse.c hv:Rename port/mmio read and write APIs 2018-08-02 14:03:38 +08:00
reloc.c hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00