mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-04 18:30:18 +00:00
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>
This commit is contained in:
@@ -37,9 +37,7 @@ struct cpuinfo_x86 {
|
||||
};
|
||||
|
||||
bool has_monitor_cap(void);
|
||||
bool is_apicv_reg_virtualization_supported(void);
|
||||
bool is_apicv_intr_delivery_supported(void);
|
||||
bool is_apicv_posted_intr_supported(void);
|
||||
bool is_apicv_advanced_feature_supported(void);
|
||||
bool cpu_has_cap(uint32_t bit);
|
||||
bool cpu_has_vmx_ept_cap(uint32_t bit_mask);
|
||||
bool cpu_has_vmx_vpid_cap(uint32_t bit_mask);
|
||||
|
Reference in New Issue
Block a user