From aff687896b5006e3e825336c5c52a5aa04ca8981 Mon Sep 17 00:00:00 2001 From: "yuhong.tao@intel.com" Date: Fri, 19 Jun 2020 07:05:50 +0800 Subject: [PATCH] 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 --- hypervisor/arch/x86/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hypervisor/arch/x86/cpu.c b/hypervisor/arch/x86/cpu.c index 15f74c3d6..86cbce28b 100644 --- a/hypervisor/arch/x86/cpu.c +++ b/hypervisor/arch/x86/cpu.c @@ -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)) {