acrn-hypervisor/hypervisor/include/arch/x86/guest
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
..
gpr.h hv: move define of struct cpu_gp_regs to a separate headfile 2018-08-09 16:43:58 +08:00
guest_pm.h hv: treewide: fix 'No definition in system for prototyped procedure' 2018-07-20 10:38:32 +08:00
guest.h hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
mptable.h HV: Adding mptable support for partition mode ACRN 2018-08-03 13:36:40 +08:00
ucode.h license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vcpu.h hv: move define of struct cpu_gp_regs to a separate headfile 2018-08-09 16:43:58 +08:00
vioapic.h hv: vioapic: change the variable type of pin to uint32_t 2018-08-06 12:32:35 +08:00
vlapic.h hv: treewide: fix 'Prototype and definition name mismatch' 2018-08-06 16:04:40 +08:00
vm0_boot.h hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
vm.h HV: trusty: new hypercall to save/restore context of secure world 2018-08-09 15:09:15 +08:00
vpic.h HV:treewide:rename struct vpic as struct acrn_vpic 2018-07-27 11:27:12 +08:00