linux/arch/x86/kernel/cpu/mcheck
Jesse Larrew f77ac507f8 x86/mce: Use safe MSR accesses for AMD quirk
Certain MSRs are only relevant to a kernel in host mode, and kvm had
chosen not to implement these MSRs at all for guests. If a guest kernel
ever tried to access these MSRs, the result was a general protection
fault.

KVM will be separately patched to return 0 when these MSRs are read,
and this patch ensures that MSR accesses are tolerant of exceptions.

Signed-off-by: Jesse Larrew <jesse.larrew@amd.com>
[ Drop {} braces around loop ]
Signed-off-by: Borislav Petkov <bp@suse.de>
Reviewed-by: Joel Schopp <joel.schopp@amd.com>
Acked-by: Tony Luck <tony.luck@intel.com>
Cc: H. Peter Anvin <hpa@zytor.com>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: linux-edac@vger.kernel.org
Link: http://lkml.kernel.org/r/1426262619-5016-1-git-send-email-jesse.larrew@amd.com
Signed-off-by: Ingo Molnar <mingo@kernel.org>
2015-03-23 10:16:43 +01:00
..
Makefile ACPI, APEI, Generic Hardware Error Source memory error support 2010-05-19 22:41:16 -04:00
mce_amd.c x86/MCE/AMD: Enable thresholding interrupts by default if supported 2015-02-19 13:24:47 +01:00
mce_intel.c x86/MCE/intel: Cleanup CMCI storm logic 2015-02-19 13:24:25 +01:00
mce-apei.c ACPI, APEI, GHES: Do not report only correctable errors with SCI 2013-12-21 13:31:06 +01:00
mce-inject.c x86: Replace __get_cpu_var uses 2014-08-26 13:45:49 -04:00
mce-internal.h x86/MCE/intel: Cleanup CMCI storm logic 2015-02-19 13:24:25 +01:00
mce-severity.c x86, mce, severity: Extend the the mce_severity mechanism to handle UCNA/DEFERRED error 2014-11-19 10:55:43 -08:00
mce.c x86/mce: Use safe MSR accesses for AMD quirk 2015-03-23 10:16:43 +01:00
p5.c x86, traps: Track entry into and exit from IST context 2015-01-02 10:22:46 -08:00
therm_throt.c x86/mce: Avoid showing repetitive message from intel_init_thermal() 2014-09-19 12:56:05 +02:00
threshold.c asmlinkage, x86: Add explicit __visible to arch/x86/* 2014-05-05 16:07:44 -07:00
winchip.c x86, traps: Track entry into and exit from IST context 2015-01-02 10:22:46 -08:00