x86, realmode: Mask out EFER.LMA when saving trampoline EFER
authorH. Peter Anvin <hpa@linux.intel.com>
Wed, 16 May 2012 20:22:41 +0000 (13:22 -0700)
committerH. Peter Anvin <hpa@linux.intel.com>
Wed, 16 May 2012 20:22:41 +0000 (13:22 -0700)
commit796038799a72adb279d785c9154df6eeb98b6e8d
treecb8d244b42bb988a07bbffa8eeffab3f3200591a
parent34d0b02e08470c56a411ba6da1f377bc6da02826
x86, realmode: Mask out EFER.LMA when saving trampoline EFER

Some AMD processors apparently #GP(0) if EFER.LMA is set in WRMSR,
rather than ignoring it.  Thus, we need to mask it out.

Reported-by: Ingo Molnar <mingo@kernel.org>
Tested-by: Borislav Petkov <bp@alien8.de>
Cc: Jarkko Sakkinen <jarkko.sakkinen@intel.com>
Signed-off-by: H. Peter Anvin <hpa@linux.intel.com>
Link: http://lkml.kernel.org/r/1336501366-28617-24-git-send-email-jarkko.sakkinen@intel.com
arch/x86/kernel/realmode.c