Huaitong Han <[email protected]> writes: > rdmsrl_safe does not lead to #GP in native kernel although CPU > does not support INTEL_PT, but if KVM does not support INTEL_PT, > the codes cannot understand MSR_IA32_RTIT_CTL, and the warning > is produced.
"the codes"? > If KVM does not support INTEL_PT, its guest CPUID also does not. > So test_cpu_cap is added before RDMSR, and it is more in line with > the code style. It does make more sense like this, but please improve this commit message. And don't forget to include Peter in the loop. FWIW, Reviewed-by: Alexander Shishkin <[email protected]> Regards, -- Alex -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/

