acrn-hypervisor/hypervisor/bsp/uefi
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
..
clearlinux acrn.conf: remove maxcpus from cmdline 2018-07-27 11:01:40 +08:00
efi hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
cmdline.c hv:cleanup console/uart code 2018-08-02 11:25:40 +08:00
platform_acpi_info.c HV: guest: cleanup of remaining integral type violations 2018-07-23 10:23:49 +08:00
uefi.c hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
vm_description.c add CONFIG_VM0_DESC support 2018-07-25 17:18:14 +08:00