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

[Xen-devel] [PATCH] DOM0: Add Machine check support to dom0

To: Jeremy Fitzhardinge <jeremy@xxxxxxxx>, "Ke, Liping" <liping.ke@xxxxxxxxx>
Subject: [Xen-devel] [PATCH] DOM0: Add Machine check support to dom0
From: "Jiang, Yunhong" <yunhong.jiang@xxxxxxxxx>
Date: Thu, 28 Jan 2010 18:13:57 +0800
Accept-language: en-US
Acceptlanguage: en-US
Cc: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Delivery-date: Thu, 28 Jan 2010 02:14:22 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
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>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcqgApprIV3tj6EbQ1GJvhIw2zXmCw==
Thread-topic: [PATCH] DOM0: Add Machine check support to dom0
Jeremy, this patch is to add MCE support to dom0.

As currently there is no branch for MCA (the original one is really so out of 
date), so this patch is against xen master.

Another patch will sent out as RFC to cover the smal windows between syscall 
entry point and stack switch.

Thanks
Yunhong Jiang

 From 2fe838c3ab2d68d4019d72b2098da4c2ef97fcd8 Mon Sep 17 00:00:00 2001
From: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
Date: Wed, 27 Jan 2010 23:48:54 +0800
Subject: [PATCH] Change the machine check point

Enable MCE support in dom0, so that if a MCE happen and that MCE impact dom0, 
dom0 can receive a vMCE.

Signed-off-by: Ke, Liping <liping.ke@xxxxxxxxx>
Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
---
 arch/x86/xen/enlighten.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/arch/x86/xen/enlighten.c b/arch/x86/xen/enlighten.c
index 7a62c2b..a8c1d34 100644
--- a/arch/x86/xen/enlighten.c
+++ b/arch/x86/xen/enlighten.c
@@ -531,7 +531,7 @@ static int cvt_gate_to_trap(int vector, const gate_desc 
*val,
                return 0;
 #ifdef CONFIG_X86_MCE
        } else if (addr == (unsigned long)machine_check) {
-               return 0;
+               addr = (unsigned long)machine_check;
 #endif
        } else if (WARN(val->ist != 0,
                        "Unknown IST-using trap: vector %d, %pF, val->ist=%d\n",
-- 
1.5.4.2



Attachment: 0001-Change-the-machine-check-point.patch
Description: 0001-Change-the-machine-check-point.patch

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] DOM0: Add Machine check support to dom0, Jiang, Yunhong <=