Re: [PATCH V2 2/3] perf protect LBR when Intel PT is enabled.

From: Andi Kleen
Date: Wed Jul 02 2014 - 22:44:27 EST


On Wed, Jul 02, 2014 at 11:14:14AM -0700, kan.liang@xxxxxxxxx wrote:
> From: Kan Liang <kan.liang@xxxxxxxxx>
>
> If RTIT_CTL.TraceEn=1, any attempt to read or write the LBR or LER MSRs, including LBR_TOS, will result in a #GP.
> Since Intel PT can be enabled/disabled at runtime, LBR MSRs have to be protected by _safe() at runtime.
>
> Signed-off-by: Kan Liang <kan.liang@xxxxxxxxx>

Patch looks good to me.

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