acrn-hypervisor/hypervisor/arch/x86/guest
Li, Fei1 f769f7457b hv: vlapic: add combined constraint for APICv
Add two functions to combine constraint for APICv:
is_apicv_basic_feature_supported: check the physical platform whether support
"Use TPR shadow", "Virtualize APIC accesses" and "Virtualize x2APIC mode"
is_apicv_advanced_feature_supported: check the physical platform whether support
"APIC-register virtualization", "Virtual-interrupt delivery" and
"Process posted interrupts".

If the physical platform only support APICv basic feature, enable "Use TPR shadow"
and "Virtualize APIC accesses" for xAPIC mode; enable "Use TPR shadow" and
"Virtualize x2APIC mode" for x2APIC. Otherwise, if the physical platform support
APICv advanced feature, enable APICv feature for xAPIC mode and x2APIC mode.

Tracked-On: #1842
Signed-off-by: Li, Fei1 <fei1.li@intel.com>
2019-03-12 20:37:06 +08:00
..
assign.c hv: Remove multiple definitions for dmar translation structures 2019-03-08 15:23:20 +08:00
ept.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
guest_memory.c HV: PAE: Add stac()/clac() in local_gva2gpa_pae 2019-03-12 09:28:35 +08:00
instr_emul.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
io_emul.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
pm.c HV: refine location of platform_acpi_info header 2019-03-08 10:34:14 +08:00
trusty.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
ucode.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vcpu.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
vcpuid.c hv:move several tsc APIs to timer.c 2019-03-07 20:23:22 +08:00
virq.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
virtual_cr.c hv: pae: fix a issue of loading pdptrs when handle cr4 2019-02-21 18:54:22 +08:00
vlapic_priv.h hv: self-IPI APIC register in x2APIC mode of guest vLAPIC 2018-11-02 13:48:43 +08:00
vlapic.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
vm.c hv: destroy IOMMU domain after vpci_cleanup() 2019-03-08 13:20:11 +08:00
vmcall.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vmcs.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
vmexit.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vmsr.c hv: vlapic: add combined constraint for APICv 2019-03-12 20:37:06 +08:00
vmtrr.c hv:cleanup header file for guest folder 2019-02-21 10:38:30 +08:00
vmx_asm.S hv: refine guest.h 2019-02-03 13:00:42 +08:00