[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [linux-2.6.18-xen] linux/x86-64: MCE: truely do Dom0 stuff only on Dom0



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1248081083 -3600
# Node ID 5a2b46dfeef8a8b0dd82e036e6ca95099ecd0a36
# Parent  71a61b393cdf313c15b077f6128e9e3f5b9b680c
linux/x86-64: MCE: truely do Dom0 stuff only on Dom0

Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
---
 arch/x86_64/kernel/mce.c |   13 ++++++++-----
 1 files changed, 8 insertions(+), 5 deletions(-)

diff -r 71a61b393cdf -r 5a2b46dfeef8 arch/x86_64/kernel/mce.c
--- a/arch/x86_64/kernel/mce.c  Mon Jul 20 10:03:44 2009 +0100
+++ b/arch/x86_64/kernel/mce.c  Mon Jul 20 10:11:23 2009 +0100
@@ -657,7 +657,6 @@ static struct notifier_block mce_cpu_not
 };
 #endif
 
-extern void bind_virq_for_mce(void);
 static __init int mce_init_device(void)
 {
        int err;
@@ -674,10 +673,14 @@ static __init int mce_init_device(void)
        register_hotcpu_notifier(&mce_cpu_notifier);
        misc_register(&mce_log_device);
 
-    /*Register vIRQ handler for MCE LOG processing*/
-#if defined(CONFIG_X86_XEN_MCE)
-    printk(KERN_DEBUG "MCE: bind virq for DOM0 Logging\n");
-    bind_virq_for_mce();
+#ifdef CONFIG_X86_XEN_MCE
+       if (is_initial_xendomain()) {
+               /* Register vIRQ handler for MCE LOG processing */
+               extern void bind_virq_for_mce(void);
+
+               printk(KERN_DEBUG "MCE: bind virq for DOM0 logging\n");
+               bind_virq_for_mce();
+       }
 #endif
 
        return err;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.