acrn-hypervisor/hypervisor/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
..
guest.c HV: trusty: refine secure_world_control 2018-08-09 15:09:15 +08:00
instr_emul.c hv: remove push/pop instruction emulation. 2018-08-09 14:46:13 +08:00
instr_emul.h HV: instr_emul: Remove dead code 2018-08-07 12:09:22 +08:00
mptable.c HV: Adding mptable support for partition mode ACRN 2018-08-03 13:36:40 +08:00
pm.c hv:cleanup vmid related code 2018-08-06 12:27:53 +08:00
ucode.c hv: get correct fault address for copy_to/from_gva 2018-08-09 14:46:13 +08:00
vcpu.c hv: init: unify init logic for vm0 bsp 2018-08-09 16:43:58 +08:00
vioapic.c hv: treewide: fix 'Switch empty default has no comment' 2018-08-08 16:01:57 +08:00
vlapic_priv.h HV:VLAPIC:add suffix "_fn" for function pointer 2018-07-31 10:33:22 +08:00
vlapic.c hv: treewide: fix 'Switch empty default has no comment' 2018-08-08 16:01:57 +08:00
vm.c HV: trusty: refine secure_world_control 2018-08-09 15:09:15 +08:00
vmcall.c HV: trusty: new hypercall to save/restore context of secure world 2018-08-09 15:09:15 +08:00
vmsr.c vcpu: add get/set register APIs 2018-08-07 09:55:13 +08:00
vpic.c hv:cleanup vmid related code 2018-08-06 12:27:53 +08:00