Re: [PATCH 02/13] x86/microcode: Use own MSR accessors

From: Thomas Gleixner
Date: Wed Jan 18 2017 - 04:49:58 EST


On Tue, 17 Jan 2017, Borislav Petkov wrote:
> From: Borislav Petkov <bp@xxxxxxx>
> Date: Tue, 17 Jan 2017 23:29:10 +0100
> Subject: [PATCH] x86/MSR: Carve out bare minimum accessors
>
> Add __rdmsr() and __wrmsr() which *only* read and write an MSR with
> exception handling. Those are going to be used in early code, like the
> microcode loader, which cannot stomach tracing code piggybacking on the
> MSR operation.
>
> While at it, get rid of __native_write_msr_notrace().

Looks good.