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

> +	/* 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