]> bbs.cooldavid.org Git - net-next-2.6.git/commit
x86, mce: Support specifying context for software mce injection
authorHuang Ying <ying.huang@intel.com>
Fri, 31 Jul 2009 01:41:40 +0000 (09:41 +0800)
committerH. Peter Anvin <hpa@zytor.com>
Mon, 10 Aug 2009 20:58:27 +0000 (13:58 -0700)
commit5b7e88edc6193f36941bccbfd5ed9ed5fe27d2e1
tree2f2cb2ab05cef96bae484d829bef19e925961f52
parentf3a0867b12e0cf1512c0bd0665f2339fc75ed2a8
x86, mce: Support specifying context for software mce injection

The cpu context is specified via the new mce.inject_flags fields.
This allows more realistic machine check testing in different
situations. "RANDOM" context is implemented via NMI broadcasting to
add randomization to testing.

AK: Fix NMI broadcasting check. Fix 32-bit building. Some race
fixes. Move to module. Various changes

ChangeLog:

v3:

- Re-based on latest x86-tip.git/mce4

- Fix 32-bit building

v2:

- Re-base on latest x86-tip.git/mce3

Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
arch/x86/include/asm/mce.h
arch/x86/kernel/cpu/mcheck/mce-inject.c