Re: [kvm-unit-tests PATCH] x86: Add test for split lock detection

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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




[Index of Archives]     [KVM ARM]     [KVM ia64]     [KVM ppc]     [Virtualization Tools]     [Spice Development]     [Libvirt]     [Libvirt Users]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite Questions]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux