Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758127Ab2EaNto (ORCPT ); Thu, 31 May 2012 09:49:44 -0400 Received: from s15943758.onlinehome-server.info ([217.160.130.188]:42540 "EHLO mail.x86-64.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757496Ab2EaNtm (ORCPT ); Thu, 31 May 2012 09:49:42 -0400 Date: Thu, 31 May 2012 15:50:09 +0200 From: Borislav Petkov To: "Liu, Jinsong" Cc: Konrad Rzeszutek Wilk , "Luck, Tony" , "'xen-devel@lists.xensource.com'" , "'linux-kernel@vger.kernel.org'" Subject: Re: [PATCH 1/2] xen/mce: Add mcelog support for Xen platform Message-ID: <20120531135009.GC14515@aftab.osrc.amd.com> References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2189 Lines: 53 On Thu, May 31, 2012 at 12:57:44PM +0000, Liu, Jinsong wrote: > From 1a7951d6ca01d7f2c9dd2bdb6de5f8e7fdcb8bbd Mon Sep 17 00:00:00 2001 > From: root > 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 > Signed-off-by: Jiang, Yunhong > Signed-off-by: Jeremy Fitzhardinge > Signed-off-by: Liu, Jinsong > --- > 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 -- Regards/Gruss, Boris. Advanced Micro Devices GmbH Einsteinring 24, 85609 Dornach GM: Alberto Bozzo Reg: Dornach, Landkreis Muenchen HRB Nr. 43632 WEEE Registernr: 129 19551 -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/