acrn-hypervisor/hypervisor/arch/x86
Kaige Fu 05834927cc HV: Fix boot failure of partition mode
When drdh_info_array[0].ignore = false with partition mode enabled,the following
assert error will be triggered when trying to boot vm:

Assertion failed in file arch/x86/vtd.c: fatal error

The root cause is that root_table_addr reading from CPU3(vm2's bsp) is NULL.

This patch move the init_iommu which initialize root_table_addr before starting
secondary cores and flush the cache at the end if the function to avoid getting
NULL pointer from secondary cores.

Tracked-On: #1160
Signed-off-by: Kaige Fu <kaige.fu@intel.com>
Reviewed-by: Binin Wu <binbin.wu@intel.com>
2018-10-26 09:16:56 +08:00
..
configs HV: config: add Kconfig and defconfigs for sbl & uefi 2018-06-08 17:21:13 +08:00
guest hv:Remove deadcode 'vm_lapic_from_pcpuid' 2018-10-25 13:45:40 +08:00
Kconfig HV: move NR_IOAPICS to platform acpi info 2018-10-18 09:26:59 +08:00
assign.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
cpu.c HV: Fix boot failure of partition mode 2018-10-26 09:16:56 +08:00
cpu_primary.S hv: fix 'User name starts with underscore' 2018-09-30 14:45:37 +08:00
cpu_save_boot_ctx.S hv: add struct acrn_vcpu_regs 2018-09-29 09:24:00 +08:00
cpu_state_tbl.c HV: Add const qualifiers where required 2018-08-17 10:02:12 +08:00
cpuid.c hv: arch: fix 'Unused procedure parameter' 2018-09-26 10:48:55 +08:00
ept.c hv: ept: remove EPT paging table for HPA to GPA 2018-10-23 09:12:51 +08:00
gdt.c HV: Removed the unused parameters and union from gdt 2018-08-27 09:40:25 +08:00
idt.S hv: Leave interrupts disabled during vmexit - ACRN partition mode 2018-08-31 08:48:47 +08:00
io.c HV:vcpu fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
ioapic.c HV: refine APIC base address to platform acpi info 2018-10-18 09:26:59 +08:00
irq.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
lapic.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
mmu.c HV:vcpu fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
mtrr.c HV:vcpu fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
notify.c hv: x2apic support for acrn 2018-10-25 13:41:29 +08:00
pagetable.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
pm.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
retpoline-thunk.S
static_checks.c hv: add struct acrn_vcpu_regs 2018-09-29 09:24:00 +08:00
timer.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
trampoline.S hv: fix 'User name starts with underscore' 2018-09-30 14:45:37 +08:00
trusty.c HV:fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
virq.c HV:vcpu fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
vmexit.c hv: fix 'No brackets to then/else' 2018-10-11 16:48:11 +08:00
vmx.c HV:vcpu fix "Pointer param should be declared pointer to const" 2018-10-25 13:45:14 +08:00
vmx_asm.S fix spec_ctrl msr save/restore 2018-08-16 16:24:13 +08:00
vtd.c HV: Fix boot failure of partition mode 2018-10-26 09:16:56 +08:00
wakeup.S hv: fix 'User name starts with underscore' 2018-09-30 14:45:37 +08:00