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: Fix legacy irq allocation issue

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [xen-unstable] x86: Fix legacy irq allocation issue
From: Xen patchbot-unstable <patchbot-unstable@xxxxxxxxxxxxxxxxxxx>
Date: Fri, 19 Jun 2009 00:57:13 -0700
Delivery-date: Fri, 19 Jun 2009 01:11:16 -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 1245397438 -3600
# Node ID 07fea69baadc897acc8168c53c69c15714c76111
# Parent  f3211c71e8f0a9a704804256980cd49a41620aa6
x86: Fix legacy irq allocation issue

When try to assign vector for irq, we should not assign vector for
legacy irq, which has fixed mapped irq<->vector relationship.

Signed-off-by: Jiang, Yunhong <yunhong.jiang@xxxxxxxxx>
---
 xen/arch/x86/irq.c |    6 ++++++
 1 files changed, 6 insertions(+)

diff -r f3211c71e8f0 -r 07fea69baadc xen/arch/x86/irq.c
--- a/xen/arch/x86/irq.c        Fri Jun 19 08:43:28 2009 +0100
+++ b/xen/arch/x86/irq.c        Fri Jun 19 08:43:58 2009 +0100
@@ -83,6 +83,12 @@ int assign_irq_vector(int irq)
     BUG_ON(irq >= nr_irqs && irq != AUTO_ASSIGN_IRQ);
 
     spin_lock(&vector_lock);
+
+    if ((irq != AUTO_ASSIGN_IRQ) && !IO_APIC_IRQ(irq))
+    {
+        spin_unlock(&vector_lock);
+        return LEGACY_VECTOR(irq);
+    }
 
     if ((irq != AUTO_ASSIGN_IRQ) && (IO_APIC_VECTOR(irq) > 0)) {
         spin_unlock(&vector_lock);

_______________________________________________
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: Fix legacy irq allocation issue, Xen patchbot-unstable <=