Support mce logging left over from previous reset in Dom0.
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
Signed-off-by Kazuhiro Suzuki <[email protected]>
xen/arch/x86/cpu/mcheck/mce_intel.c +2 -2
@@ -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
@@ -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
@@ -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