acrn-hypervisor/hypervisor/bsp/uefi/efi
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
..
Makefile hv: rename acrn_efi.h to vm0_boot.h 2018-08-09 16:43:58 +08:00
boot.c hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
boot.h hv: efi: remove multiple defined struct efi_ctx & dt_addr_t 2018-07-23 10:35:32 +08:00
efilinux.h efi: clean RuntimeServices code 2018-05-15 17:25:57 +08:00
malloc.c hv: fix typo in relocation code 2018-07-24 10:17:01 +08:00
multiboot.h HV: treewide: convert hexadecimals used in bitops to unsigned 2018-06-21 13:12:39 +08:00
pe.c initial import 2018-05-11 14:44:28 +08:00
stdlib.h hv: add memory allocation functions for trampoline code relocation 2018-06-11 12:15:28 +08:00