linux/x86-64: MCE: truely do Dom0 stuff only on Dom0
PATCH 1/1 linux/x86-64: MCE: truely do Dom0 stuff only on Dom0
Signed-off-by Jan Beulich <[email protected]>
arch/x86_64/kernel/mce.c +8 -5
@@ -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;