x86, msr: Add rd/wrmsr interfaces with preset registers
authorBorislav Petkov <petkovbb@googlemail.com>
Mon, 31 Aug 2009 07:50:09 +0000 (09:50 +0200)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 31 Aug 2009 22:14:26 +0000 (15:14 -0700)
native_{rdmsr,wrmsr}_safe_regs are two new interfaces which allow
presetting of a subset of eight x86 GPRs before executing the rd/wrmsr
instructions. This is needed at least on AMD K8 for accessing an erratum
workaround MSR.

Originally based on an idea by H. Peter Anvin.

Signed-off-by: Borislav Petkov <petkovbb@gmail.com>
LKML-Reference: <1251705011-18636-1-git-send-email-petkovbb@gmail.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>

No differences found