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] Support mce logging left over from previous reset in

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Support mce logging left over from previous reset in Dom0.
From: "SUZUKI, Kazuhiro" <kaz@xxxxxxxxxxxxxx>
Date: Tue, 29 Sep 2009 16:36:28 +0900 (JST)
Delivery-date: Tue, 29 Sep 2009 00:36:59 -0700
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
Hi,

The attached patch set supports machine check logging left over from
previous reset in Dom0 boot up stage.

enable_mce_log_at_boot-xen.patch:       xen part
enable_mce_log_at_boot-linux.patch:     linux-2.6.18.8 dom0 part
enable_mce_log_at_boot-pvops.patch:     pvos dom0 part

Thanks,
KAZ

Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
diff -r 623aa5c2eaa4 xen/arch/x86/cpu/mcheck/mce_intel.c
--- a/xen/arch/x86/cpu/mcheck/mce_intel.c       Fri Sep 25 15:20:58 2009 +0100
+++ b/xen/arch/x86/cpu/mcheck/mce_intel.c       Mon Sep 28 11:14:01 2009 +0900
@@ -1029,10 +1029,10 @@
 
     mctc = mcheck_mca_logout(MCA_RESET, mca_allbanks, &bs, NULL);
 
-    /* in the boot up stage, don't inject to DOM0, but print out */
+    /* in the boot up stage, print out and also log in DOM0 boot process */
     if (bs.errcnt && mctc != NULL) {
         x86_mcinfo_dump(mctelem_dataptr(mctc));
-        mctelem_dismiss(mctc);
+        mctelem_commit(mctc);
     }
 
     set_in_cr4(X86_CR4_MCE);
diff -r f1a207ccb493 arch/x86_64/kernel/mce_dom0.c
--- a/arch/x86_64/kernel/mce_dom0.c     Sun Aug 30 08:54:15 2009 +0100
+++ b/arch/x86_64/kernel/mce_dom0.c     Mon Sep 28 11:14:25 2009 +0900
@@ -127,5 +127,8 @@
        g_mi = kmalloc(sizeof(struct mc_info), GFP_KERNEL);
        if (ret < 0)
                printk(KERN_ERR "MCE_DOM0_LOG: bind_virq for DOM0 failed\n");
+
+       /* Log the machine checks left over from the previous reset. */
+       mce_dom0_interrupt(VIRQ_MCA, NULL, NULL);
 }
 
diff --git a/drivers/xen/mce.c b/drivers/xen/mce.c
index b354dc8..b2e08a0 100644
--- a/drivers/xen/mce.c
+++ b/drivers/xen/mce.c
@@ -189,6 +189,8 @@ static int bind_virq_for_mce(void)
                return ret;
        }
 
+       /* Log the machine checks left over from the previous reset. */
+       mce_dom_interrupt(VIRQ_MCA, NULL);
        return 0;
 }
 
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] Support mce logging left over from previous reset in Dom0., SUZUKI, Kazuhiro <=