WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

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

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] linux/x86-64: MCE: truely do Dom0 stuff only on Dom0
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Mon, 20 Jul 2009 04:45:42 -0700
Delivery-date: Mon, 20 Jul 2009 04:47:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] linux/x86-64: MCE: truely do Dom0 stuff only on Dom0, Xen patchbot-linux-2.6.18-xen <=