acrn-hypervisor/hypervisor/arch/x86
Zhao Yakui cee2f8b288 ACRN/HV: Refine the function of init_vboot to initialize the depriv_boot env correctly
Currently when get_rsdp is called, the EFI depriv_boot env is not initialized.
In such case it will fallback to the legacy mechanism of ACPI table.
If the ACPI table based on legacy mechanism is not found, it will fail to get
the ACPI table and then the system will hang.
On the old platform it still can parse the ACPI table from legacy mechanism.
In fact when EFI RSDP exists, the EFI RSDP is preferred instead of legacy ACPI
RSDP.

In order to avoid multiple calling of depriv_init_boot, the init_boot_operations
is renamed and called after X2apic is enabled(early_init_lapic).

Tracked-On: #3184
Signed-off-by: Zhao Yakui <yakui.zhao@intel.com>
Reviewed-by: Yin Fengwei <fengwei.yin@intel.com>
Reviewed-by: Jason Chen CJ <jason.cj.chen@intel.com>
2019-05-30 14:07:57 +08:00
..
boot hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
configs hv: vm_config: add epc info in vm config 2019-05-29 11:24:13 +08:00
guest hv: vmcs: don't trap when setting reserved bit in cr0/cr4 2019-05-30 11:33:01 +08:00
lib hv:move several files related X86 for lib 2019-05-13 10:12:20 +08:00
seed hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
cat.c hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00
cpu_caps.c HV: remove vcpu arch lock, not needed. 2019-05-22 16:35:26 +08:00
cpu_state_tbl.c HV: enforce Cx of apl nuc with SPACE_SYSTEM_IO 2019-05-24 11:36:54 +08:00
cpu.c ACRN/HV: Refine the function of init_vboot to initialize the depriv_boot env correctly 2019-05-30 14:07:57 +08:00
e820.c hv: cleanup some hva/hpa conversion code 2019-03-15 09:03:14 +08:00
gdt.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
idt.S move idt.S and idt.h out of boot component 2018-12-12 09:07:43 +08:00
init.c ACRN/HV: Refine the function of init_vboot to initialize the depriv_boot env correctly 2019-05-30 14:07:57 +08:00
ioapic.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
irq.c rename function & definition from firmware to guest boot 2019-05-09 16:33:44 +08:00
Kconfig HV: enable Kconfig of ACPI_PARSE_ENABLED 2019-05-14 11:53:02 +08:00
lapic.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
mmu.c HV: enable Kconfig of ACPI_PARSE_ENABLED 2019-05-14 11:53:02 +08:00
notify.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
page.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
pagetable.c hv:cleanup header files for arch folder 2019-02-22 13:14:36 +08:00
pm.c HV: remove some redundant includes 2019-05-08 16:57:46 +08:00
retpoline-thunk.S license: Replace license text with SPDX tag 2018-06-01 10:43:06 +08:00
sched.S replace arch_switch_to with pure asm code instead of inline asm 2019-01-25 11:39:47 +08:00
security.c HV: remove vcpu arch lock, not needed. 2019-05-22 16:35:26 +08:00
sgx.c hv: sgx: add basic support to init sgx resource for vm 2019-05-29 11:24:13 +08:00
timer.c HV: Add prefix 'p' before 'cpu' to physical cpu related functions 2019-04-24 10:50:28 +08:00
trampoline.c rename function & definition from firmware to guest boot 2019-05-09 16:33:44 +08:00
vmx.c hv:move instr_emul_ctxt instance to struct vcpu 2019-03-13 14:04:20 +08:00
vtd.c hv: vtd: fix a logic error when set iommu page walk coherent 2019-05-27 14:57:46 +08:00
wakeup.S hv:remove some unnecessary includes 2019-05-07 09:10:13 +08:00