hv:cpu-caps:refine is_apl_platform func and clean up duplicated code

Fix the bug for "is_apl_platform" func.
"monitor_cap_buggy" is identical to "is_apl_platform", so remove it.

On apl platform:
1) ACRN doesn't use monitor/mwait instructions
2) ACRN disable GPU IOMMU

Tracked-On:#3675

Signed-off-by: Junming Liu <junming.liu@intel.com>
This commit is contained in:
Junming Liu
2020-08-13 20:16:36 +08:00
committed by wenlingz
parent 538e7cf74d
commit 3631a85c3c
3 changed files with 4 additions and 15 deletions

View File

@@ -46,7 +46,7 @@ struct cpuinfo_x86 {
};
bool has_monitor_cap(void);
bool monitor_cap_buggy(void);
bool is_apl_platform(void);
bool is_apicv_advanced_feature_supported(void);
bool pcpu_has_cap(uint32_t bit);
bool pcpu_has_vmx_ept_cap(uint32_t bit_mask);