[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: calculate nr_irqs_gsi correctly.



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1250753176 -3600
# Node ID 37dcd9c7877ce376b56018e79d03cc76a6e927ad
# Parent  fb2dc2506aced51ca847fdb26a2e2432360d4571
x86: calculate nr_irqs_gsi correctly.

Should be a typo, this issue is introduced by Cset20076,
and it may break VT-d device assignment.

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

diff -r fb2dc2506ace -r 37dcd9c7877c xen/arch/x86/io_apic.c
--- a/xen/arch/x86/io_apic.c    Thu Aug 20 08:25:41 2009 +0100
+++ b/xen/arch/x86/io_apic.c    Thu Aug 20 08:26:16 2009 +0100
@@ -2393,7 +2393,7 @@ void __init init_ioapic_mappings(void)
         }
     }
 
-    nr_irqs_gsi = max(nr_irqs, highest_gsi());
+    nr_irqs_gsi = max(nr_irqs_gsi, highest_gsi());
 
     if ( !smp_found_config || skip_ioapic_setup || nr_irqs_gsi < 16 )
         nr_irqs_gsi = 16;

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


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.