diff options
author | Andi Kleen <ak@linux.intel.com> | 2009-06-08 13:37:09 +0400 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 13:27:08 +0400 |
commit | a0861c02a981c943573478ea13b29b1fb958ee5b (patch) | |
tree | a98fb24b4cc4cc7fb58037be64fd4cc42c35bf38 /arch/x86/kernel | |
parent | 56b237e31abf4d6dbc6e2a0214049b9a23be4883 (diff) | |
download | linux-a0861c02a981c943573478ea13b29b1fb958ee5b.tar.xz |
KVM: Add VT-x machine check support
VT-x needs an explicit MC vector intercept to handle machine checks in the
hyper visor.
It also has a special option to catch machine checks that happen
during VT entry.
Do these interceptions and forward them to the Linux machine check
handler. Make it always look like user space is interrupted because
the machine check handler treats kernel/user space differently.
Thanks to Jiang Yunhong for help and testing.
Cc: stable@kernel.org
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Signed-off-by: Huang Ying <ying.huang@intel.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'arch/x86/kernel')
-rw-r--r-- | arch/x86/kernel/cpu/mcheck/mce_64.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/arch/x86/kernel/cpu/mcheck/mce_64.c b/arch/x86/kernel/cpu/mcheck/mce_64.c index 09dd1d414fc3..289cc4815028 100644 --- a/arch/x86/kernel/cpu/mcheck/mce_64.c +++ b/arch/x86/kernel/cpu/mcheck/mce_64.c @@ -420,6 +420,7 @@ void do_machine_check(struct pt_regs * regs, long error_code) out2: atomic_dec(&mce_entry); } +EXPORT_SYMBOL_GPL(do_machine_check); #ifdef CONFIG_X86_MCE_INTEL /*** |