]> git.karo-electronics.de Git - karo-tx-linux.git/commit
xen/mce: Add mcelog support for Xen platform
authorLiu, Jinsong <jinsong.liu@intel.com>
Thu, 7 Jun 2012 11:56:51 +0000 (19:56 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 7 Jun 2012 14:52:13 +0000 (10:52 -0400)
commite2a911a328642ce2c4f7ac9f4c4807f569f32769
tree8cfe19109fef4734eb1f3ce9ee4da68b38a77144
parentf8f5701bdaf9134b1f90e5044a82c66324d2073f
xen/mce: Add mcelog support for Xen platform

When MCA error occurs, it would be handled by Xen hypervisor first,
and then the error information would be sent to initial domain for logging.

This patch gets error information from Xen hypervisor and convert
Xen format error into Linux format mcelog. This logic is basically
self-contained, not touching other kernel components.

By using tools like mcelog tool users could read specific error information,
like what they did under native Linux.

To test follow directions outlined in Documentation/acpi/apei/einj.txt

Acked-and-tested-by: Borislav Petkov <borislav.petkov@amd.com>
Signed-off-by: Ke, Liping <liping.ke@intel.com>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@intel.com>
Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com>
Signed-off-by: Liu, Jinsong <jinsong.liu@intel.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/include/asm/xen/hypercall.h
arch/x86/kernel/cpu/mcheck/mce.c
arch/x86/xen/enlighten.c
drivers/xen/Kconfig
drivers/xen/Makefile
drivers/xen/mcelog.c [new file with mode: 0644]
include/linux/miscdevice.h
include/xen/interface/xen-mca.h [new file with mode: 0644]