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:
Shuo A Liu 2021-03-23 10:46:02 +08:00 committed by wenlingz
parent 4a072d2c4b
commit d9cd7f964b
2 changed files with 6 additions and 1 deletions

View File

@ -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)

View File

@ -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;
}
}