mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-22 09:17:58 +00:00
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:
@@ -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);
|
||||
|
Reference in New Issue
Block a user