]> git.ipfire.org Git - people/arne_f/kernel.git/commit
x86/MSR: Carve out bare minimum accessors
authorBorislav Petkov <bp@suse.de>
Fri, 20 Jan 2017 20:29:41 +0000 (21:29 +0100)
committerThomas Gleixner <tglx@linutronix.de>
Mon, 23 Jan 2017 09:02:45 +0000 (10:02 +0100)
commita585df8edabdb47ae25214ebb3a627ca7ce800d3
treeeb908c0999061ab7825d3216c2e238dbe8504aca
parentc26665ab5c49ad3e142e0f054ca3204f259ba09c
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().

Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20170120202955.4091-3-bp@alien8.de
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
arch/x86/include/asm/apic.h
arch/x86/include/asm/msr.h