WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

RE: [Xen-devel] [pvops-dom0] Adding MCA logging support in pv_ops

To: "Liping Ke" <liping.ke@xxxxxxxxx>
Subject: RE: [Xen-devel] [pvops-dom0] Adding MCA logging support in pv_ops
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 18 Aug 2009 10:02:01 +0100
Cc: Andi Kleen <andi.kleen@xxxxxxxxx>, Christoph Egger <Christoph.Egger@xxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>, Keir Fraser <keir.fraser@xxxxxxxxxxxxx>, Jeremy Fitzhardinge <jeremy@xxxxxxxx>
Delivery-date: Tue, 18 Aug 2009 02:02:33 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <E2263E4A5B2284449EEBD0AAB751098402CE11BCA8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
References: <E2263E4A5B2284449EEBD0AAB751098402CDF6599F@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4A7174D3020000780000D350@xxxxxxxxxxxxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098402CDF65BEB@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098402CDF65C35@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4A71D4F8.70804@xxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098402CE0B5780@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4A7A0DF7.5040706@xxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098402CE0B6567@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> <4A7C6D67.7090202@xxxxxxxx> <E2263E4A5B2284449EEBD0AAB751098402CE11BCA8@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
>>> "Ke, Liping" <liping.ke@xxxxxxxxx> 10.08.09 05:08 >>>
>From e0815ca1fe7fbcc2f1de23608148e8d612974f2b Mon Sep 17 00:00:00 2001
>From: Liping Ke <liping.ke@xxxxxxxxx>
>Date: Mon, 10 Aug 2009 11:04:21 +0800
>Subject: [PATCH] Add MCA Logging support in pv-ops
>
>This patch is backport from previous DOM0(2.6.18) cs: 75e5bfa7fbdc
>
>When an MCE/CMCI error happens (or by polling), the related error
>information will be sent to privileged pv-ops domain by XEN. This
>patch will help to fetch the xen-logged information by hypercall
>and then convert XEN-format log into Linux format MCELOG. It makes
>using current available mcelog tools for native Linux possible.
>
>With this patch, after mce/cmci error log information is sent to
>pv-ops guest, Running mcelog tools in the guest, you will get same
>detailed decoded mce information as in Native Linux.
>
>Signed-off-by: Liping Ke <liping.ke@xxxxxxxxx>
>Signed-off-by: Yunhong Jiang <yunhong.jiang@xxxxxxxxx>

The order of operations in bind_virq_for_mce() needs to change: You must
not register the vIRQ handler if any of the memory allocations failed,
otherwise the interrupt handler will de-reference NULL.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel