All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] linux/x86-64: MCE: truely do Dom0 stuff only on Dom0
@ 2009-07-17 14:19 Jan Beulich
  0 siblings, 0 replies; only message in thread
From: Jan Beulich @ 2009-07-17 14:19 UTC (permalink / raw)
  To: xen-devel

Signed-off-by: Jan Beulich <jbeulich@novell.com>

--- a/arch/x86_64/kernel/mce.c
+++ b/arch/x86_64/kernel/mce.c
@@ -665,7 +665,6 @@ nomem:
 };
 #endif
 
-extern void bind_virq_for_mce(void);
 static __init int mce_init_device(void)
 {
 	int err;
@@ -684,10 +683,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;

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-07-17 14:19 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-07-17 14:19 [PATCH] linux/x86-64: MCE: truely do Dom0 stuff only on Dom0 Jan Beulich

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.