HV: Fix split-locked access detection is disabled by default

The commit 'HV: Config Splitlock Detection to be disable' allows
using CONFIG_ENFORCE_TURNOFF_AC to turn off splitlock #AC. If
CONFIG_ENFORCE_TURNOFF_AC is not set, splitlock #AC should be turn on

Tracked-On: #4962
Signed-off-by: Tao Yuhong <yuhong.tao@intel.com>
This commit is contained in:
yuhong.tao@intel.com 2020-06-19 07:05:50 +08:00 committed by wenlingz
parent 70f7e2239f
commit 2100ef0b50

View File

@ -100,7 +100,7 @@ uint64_t get_active_pcpu_bitmap(void)
static void enable_ac_for_splitlock(void)
{
#ifdef CONFIG_ENFORCE_TURNOFF_AC
#ifndef CONFIG_ENFORCE_TURNOFF_AC
uint64_t test_ctl;
if (has_core_cap(1U << 5U)) {