acrn-hypervisor/hypervisor/arch/x86
Binbin Wu bed6f0b99e hv: set start mode of vcpu
In current code, sos/uos bsp can only start from 64bit mode.

For sbl platform:
This patch start sos bsp from protected mode by default.
CONFIG_START_VM0_BSP_64BIT is defined to allow start sos bsp
from 64bit mode. If a config CONFIG_START_VM0_BSP_64BIT
defined in config file, then sos bsp will start from 64bit mode.
This patch start uos bsp from real mode, which needs the integration
of virtual bootloader (vsbl).

For uefi platform:
This patch sets sos bsp vcpu mode according to the uefi context.
This patch starts uos bsp from protected mode, because vsbl is not ready
to publish for uefi platform yet. After vsbl is ready, can change to
start uos bsp from real mode.

Signed-off-by: Binbin Wu <binbin.wu@intel.com>
Reviewed-by: Eddie Dong <eddie.dong@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Acked-by: Xu, Anthony <anthony.xu@intel.com>
2018-06-01 19:14:13 +08:00
..
debug HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
guest hv: set start mode of vcpu 2018-06-01 19:14:13 +08:00
assign.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpu_primary.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpu_secondary.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpu_state_tbl.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
cpu.c fix "ISO C99 does not support '_Static_assert'" 2018-06-01 16:39:28 +08:00
cpuid.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
ept.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
gdt.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
idt.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
interrupt.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
intr_lapic.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
intr_main.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
io.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
ioapic.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
irq.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
mmu.c HV: further cleanup of header inclusions 2018-05-25 10:45:56 +08:00
notify.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
softirq.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
timer.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
trusty.c fix "ISO C99 does not support '_Static_assert'" 2018-06-01 16:39:28 +08:00
vmexit.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vmx_asm.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
vmx.c hv: set start mode of vcpu 2018-06-01 19:14:13 +08:00
vtd.c license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00