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] [xen-unstable] x86: Initialize the affinity field after

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: Initialize the affinity field after assigning the vector.
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Wed, 21 Oct 2009 08:10:14 -0700
Delivery-date: Wed, 21 Oct 2009 08:10:30 -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 1256137657 -3600
# Node ID 9ba4d512bd0c364d4d15adf79f496f7b2a033fb2
# Parent  6a41f093b81e7dcd5db60f57a38c74c4671545c2
x86: Initialize the affinity field after assigning the vector.

To avoid strange output from debug-key "i", desc->affinity should
be the subset of the cfg->domain basically, so copy cfg->domain to
desc->affinity after assigning vector for the irq..

Signed-off-by: Xiantao Zhang <xiantao.zhang@xxxxxxxxx>
---
 xen/arch/x86/irq.c |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletion(-)

diff -r 6a41f093b81e -r 9ba4d512bd0c xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Wed Oct 21 16:06:30 2009 +0100
+++ b/xen/arch/x86/irq.c        Wed Oct 21 16:07:37 2009 +0100
@@ -419,13 +419,16 @@ int assign_irq_vector(int irq)
     int ret;
     unsigned long flags;
     struct irq_cfg *cfg = &irq_cfg[irq];
+    struct irq_desc *desc = irq_to_desc(irq);
     
     BUG_ON(irq >= nr_irqs || irq <0);
 
     spin_lock_irqsave(&vector_lock, flags);
     ret = __assign_irq_vector(irq, cfg, TARGET_CPUS);
-    if (!ret)
+    if (!ret) {
         ret = cfg->vector;
+        cpus_copy(desc->affinity, cfg->domain);
+    }
     spin_unlock_irqrestore(&vector_lock, flags);
     return ret;
 }

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [xen-unstable] x86: Initialize the affinity field after assigning the vector., Xen patchbot-unstable <=