|
|
|
|
|
|
|
|
|
|
xen-devel
[Xen-devel] [PATCH] linux/x86-64: MCE: truely do Dom0 stuff only on Dom0
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>
--- 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;
_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
|
<Prev in Thread] |
Current Thread |
[Next in Thread> |
- [Xen-devel] [PATCH] linux/x86-64: MCE: truely do Dom0 stuff only on Dom0,
Jan Beulich <=
|
|
|
|
|