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-devel

[Xen-devel] [PATCH] x86: use key handler scratch buffer in dump_irqs()

To: <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] [PATCH] x86: use key handler scratch buffer in dump_irqs()
From: "Jan Beulich" <JBeulich@xxxxxxxxxx>
Date: Tue, 02 Mar 2010 12:53:27 +0000
Delivery-date: Tue, 02 Mar 2010 04:54:05 -0800
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Signed-off-by: Jan Beulich <jbeulich@xxxxxxxxxx>

--- 2010-03-02.orig/xen/arch/x86/irq.c  2010-02-01 08:34:54.000000000 +0100
+++ 2010-03-02/xen/arch/x86/irq.c       2010-03-02 09:23:24.000000000 +0100
@@ -1584,7 +1584,6 @@ static void dump_irqs(unsigned char key)
     irq_guest_action_t *action;
     struct domain *d;
     unsigned long flags;
-    char cpustr[NR_CPUS/4+NR_CPUS/32+2];
 
     printk("Guest interrupt information:\n");
 
@@ -1599,10 +1598,11 @@ static void dump_irqs(unsigned char key)
 
         spin_lock_irqsave(&desc->lock, flags);
 
-        cpumask_scnprintf(cpustr, sizeof(cpustr), desc->affinity);
+        cpumask_scnprintf(keyhandler_scratch, sizeof(keyhandler_scratch),
+                          desc->affinity);
         printk("   IRQ:%4d affinity:%s vec:%02x type=%-15s"
                " status=%08x ",
-               irq, cpustr, cfg->vector,
+               irq, keyhandler_scratch, cfg->vector,
                desc->handler->typename, desc->status);
 
         if ( !(desc->status & IRQ_GUEST) )



Attachment: x86-dump-irq-use-scratch.patch
Description: Text document

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-devel] [PATCH] x86: use key handler scratch buffer in dump_irqs(), Jan Beulich <=