[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [xen-unstable] xen: if mapping GSIs we run out of pirq < nr_irqs_gsi, use the others
# HG changeset patch # User Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> # Date 1315906344 -3600 # Node ID ad3b4bb097cb6308f73e597c5412395ad783ea4a # Parent 53416e7c05297978985bd943f8d179599829dbf7 xen: if mapping GSIs we run out of pirq < nr_irqs_gsi, use the others PV on HVM guests can have more GSIs than the host, in that case we could run out of pirq < nr_irqs_gsi. When that happens use pirq >= nr_irqs_gsi rather than returning an error. Signed-off-by: Stefano Stabellini <stefano.stabellini@xxxxxxxxxxxxx> Tested-by: Benjamin Schweikert <b.schweikert@xxxxxxxxxxxxxx> --- diff -r 53416e7c0529 -r ad3b4bb097cb xen/arch/x86/irq.c --- a/xen/arch/x86/irq.c Tue Sep 13 10:30:09 2011 +0100 +++ b/xen/arch/x86/irq.c Tue Sep 13 10:32:24 2011 +0100 @@ -1646,15 +1646,12 @@ return i; } } - else - { - for ( i = d->nr_pirqs - 1; i >= nr_irqs_gsi; i-- ) - if ( is_free_pirq(d, pirq_info(d, i)) ) - { - pirq_get_info(d, i); - return i; - } - } + for ( i = d->nr_pirqs - 1; i >= nr_irqs_gsi; i-- ) + if ( is_free_pirq(d, pirq_info(d, i)) ) + { + pirq_get_info(d, i); + return i; + } return -ENOSPC; } _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |