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, 19 Jul 2012 19:51:36 +0000 (15:51 -0400)
commitcef12ee52b054282461a6d5fe7742755fa6e3bd3
tree01f7c85832beaee257e99c8fb57cf8294774afb6
parent485802a6c524e62b5924849dd727ddbb1497cc71
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]