mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-29 20:47:56 +00:00
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>