Re: GPF in intel_pmu_lbr_reset() with qemu -cpu host

From: Andi Kleen
Date: Fri Mar 21 2014 - 20:31:16 EST


On Fri, Mar 21, 2014 at 05:26:17PM -0700, H. Peter Anvin wrote:
> On 03/21/2014 05:22 PM, Andi Kleen wrote:
> >> Actually, Ingo, Borislav and I have been discussing making rdmsr_safe()
> >> more of the default, especially for things like this where the error
> >> handling is obvious (doesn't work? Disable the PMU.)
> >
> > That would be completely wrong. KVM has a full architectural perfmon PMU,
> > just no model specific extensions like LBR.
> >
>
> s/PMU/PMU extension in question/

% grep -r 'rdmsr' arch/x86/* | grep -v safe | wc -l
285

I assume it'll keep you all busy for a while.

[compared to a likely one liner in KVM]

-Andi
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/