summaryrefslogtreecommitdiff
path: root/arch/x86/include/asm/microcode.h
diff options
context:
space:
mode:
authorBorislav Petkov <bp@suse.de>2017-01-20 21:29:41 +0100
committerThomas Gleixner <tglx@linutronix.de>2017-01-23 10:02:45 +0100
commita585df8edabdb47ae25214ebb3a627ca7ce800d3 (patch)
treeeb908c0999061ab7825d3216c2e238dbe8504aca /arch/x86/include/asm/microcode.h
parentc26665ab5c49ad3e142e0f054ca3204f259ba09c (diff)
downloadlinux-a585df8edabdb47ae25214ebb3a627ca7ce800d3.tar.gz
linux-a585df8edabdb47ae25214ebb3a627ca7ce800d3.tar.xz
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>
Diffstat (limited to 'arch/x86/include/asm/microcode.h')
0 files changed, 0 insertions, 0 deletions