mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2026-01-04 23:24:56 +00:00
HV: Config Splitlock Detection to be disable
#AC should be normally enabled for slpitlock detection, however, community developers may want to run ACRN on buggy system. In this case, CONFIG_ENFORCE_TURNOFF_AC can be used to turn off the #AC, to let the guest run without #AC. Tracked-On: #4765 Signed-off-by: Tao Yuhong <yuhong.tao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
committed by
wenlingz
parent
bf5d187539
commit
b0ae9cfa2b
@@ -100,6 +100,7 @@ uint64_t get_active_pcpu_bitmap(void)
|
||||
|
||||
static void enable_ac_for_splitlock(void)
|
||||
{
|
||||
#ifdef CONFIG_ENFORCE_TURNOFF_AC
|
||||
uint64_t test_ctl;
|
||||
|
||||
if (has_core_cap(1U << 5U)) {
|
||||
@@ -107,6 +108,7 @@ static void enable_ac_for_splitlock(void)
|
||||
test_ctl |= (1U << 29U);
|
||||
msr_write(MSR_TEST_CTL, test_ctl);
|
||||
}
|
||||
#endif /*CONFIG_ENFORCE_TURNOFF_AC*/
|
||||
}
|
||||
|
||||
void init_pcpu_pre(bool is_bsp)
|
||||
|
||||
Reference in New Issue
Block a user