mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-20 12:42:54 +00:00
hv: WA: Disable advanced feature of apicv to WA ACRN-6886
Tracked-On: #5866 Signed-off-by: Shuo A Liu <shuo.a.liu@intel.com>
This commit is contained in:
parent
4a072d2c4b
commit
d9cd7f964b
@ -357,7 +357,10 @@ static inline bool is_apicv_basic_feature_supported(void)
|
||||
|
||||
bool is_apicv_advanced_feature_supported(void)
|
||||
{
|
||||
return ((cpu_caps.apicv_features & APICV_ADVANCED_FEATURE) == APICV_ADVANCED_FEATURE);
|
||||
/*
|
||||
* To WA ACRN-6886 issue, force to disable apicv advanced feature.
|
||||
*/
|
||||
return false;
|
||||
}
|
||||
|
||||
bool pcpu_has_vmx_ept_cap(uint32_t bit_mask)
|
||||
|
@ -2644,8 +2644,10 @@ static const struct acrn_apicv_ops apicv_advanced_ops = {
|
||||
void vlapic_set_apicv_ops(void)
|
||||
{
|
||||
if (is_apicv_advanced_feature_supported()) {
|
||||
pr_err("Advanced apicv ops is used!");
|
||||
apicv_ops = &apicv_advanced_ops;
|
||||
} else {
|
||||
pr_err("Basic apicv ops is used!");
|
||||
apicv_ops = &apicv_basic_ops;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user