[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-4.0-testing] x86: fix off-by-one in nr_irqs_gsi calculation
# HG changeset patch # User Jan Beulich <jbeulich@xxxxxxxx> # Date 1343651987 -3600 # Node ID 6d7ae840463c5d6d15c710199b3f4b2bb2a33000 # Parent 58516d1a539e166e20472ade13bdef6b4ed016fa x86: fix off-by-one in nr_irqs_gsi calculation highest_gsi() returns the last valid GSI, not a count. Signed-off-by: Jan Beulich <jbeulich@xxxxxxxx> Acked-by: Joe Jin <joe.jin@xxxxxxxxxx> Acked-by: Keir Fraser <keir@xxxxxxx> xen-unstable changeset: 25688:e6266fc76d08 xen-unstable date: Fri Jul 27 12:22:13 2012 +0200 --- diff -r 58516d1a539e -r 6d7ae840463c xen/arch/x86/io_apic.c --- a/xen/arch/x86/io_apic.c Mon Jul 30 13:39:31 2012 +0100 +++ b/xen/arch/x86/io_apic.c Mon Jul 30 13:39:47 2012 +0100 @@ -2589,7 +2589,7 @@ void __init init_ioapic_mappings(void) } } - nr_irqs_gsi = max(nr_irqs_gsi, highest_gsi()); + nr_irqs_gsi = max(nr_irqs_gsi, highest_gsi() + 1); if ( !smp_found_config || skip_ioapic_setup || nr_irqs_gsi < 16 ) nr_irqs_gsi = 16; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |