Re: [PATCH 1/2] xen/mce: Add mcelog support for Xen platform

From: Konrad Rzeszutek Wilk
Date: Thu May 31 2012 - 11:37:22 EST


On Thu, May 31, 2012 at 03:50:09PM +0200, Borislav Petkov wrote:
> On Thu, May 31, 2012 at 12:57:44PM +0000, Liu, Jinsong wrote:
> > From 1a7951d6ca01d7f2c9dd2bdb6de5f8e7fdcb8bbd Mon Sep 17 00:00:00 2001
> > From: root <root@xxxxxxxxxxxxxxxxxxxxxx>
> > Date: Fri, 1 Jun 2012 03:12:51 +0800
> > Subject: [PATCH 1/2] 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
> >
> > Signed-off-by: Ke, Liping <liping.ke@xxxxxxxxx>
> > Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
> > Signed-off-by: Jeremy Fitzhardinge <jeremy.fitzhardinge@xxxxxxxxxx>
> > Signed-off-by: Liu, Jinsong <jinsong.liu@xxxxxxxxx>
> > ---
> > arch/x86/include/asm/xen/hypercall.h | 8 +
> > arch/x86/kernel/cpu/mcheck/mce.c | 4 +-
> > arch/x86/xen/enlighten.c | 5 +-
> > drivers/xen/Kconfig | 8 +
> > drivers/xen/Makefile | 1 +
> > drivers/xen/mcelog.c | 392 ++++++++++++++++++++++++++++++++++
> > include/linux/miscdevice.h | 1 +
> > include/xen/interface/xen-mca.h | 385 +++++++++++++++++++++++++++++++++
> > 8 files changed, 798 insertions(+), 6 deletions(-)
> > create mode 100644 drivers/xen/mcelog.c
> > create mode 100644 include/xen/interface/xen-mca.h
>
> For the mce bits:
>
> Acked-and-tested-by: Borislav Petkov <borislav.petkov@xxxxxxx>

Sweet. Let me test it on a variety of hardware with Xen and without Xen
with 32/64 variations to double-check.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/