Skip to contentSkip to conversation

Support mce logging left over from previous reset in Dom0.

PATCH New SUZUKI, Kazuhiro 1 participant 1 message Sep 29, 2009 Xen hypervisor interface

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Support mce logging left over from previous reset in Dom0.

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

xen/arch/x86/cpu/mcheck/mce_intel.c +2 -2
diff -r 623aa5c2eaa4 xen/arch/x86/cpu/mcheck/mce_intel.c
@@ -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);
arch/x86_64/kernel/mce_dom0.c +3 -0
diff -r f1a207ccb493 arch/x86_64/kernel/mce_dom0.c
@@ -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);
 }
 
drivers/xen/mce.c +2 -0
index b354dc8..b2e08a0 100644
@@ -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
[email protected]
http://lists.xensource.com/xen-devel