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

Andi Kleen
2014-03-22T00:31:00Z

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