On Mon, 2019-03-04 at 13:18 +0100, Paolo Bonzini wrote: > On 04/03/19 12:05, Xiaoyao Li wrote: > > + > > +static void ac_handler(struct ex_regs *regs) { > > + report("Caught #AC exception because of split locked accesses", true); > > If split lock detection does not work, this would not fail. You can > just set a boolean here, and in main pass it to "report". > > Paolo Thanks for pointing out this. I'll correct it in next version. > > + /* disable split lock detection */ > > + wrmsr(MSR_TEST_CTL, rdmsr(MSR_TEST_CTL) & > > ~TEST_CTL_ENABLE_SPLIT_LOCK_DETECT); > >