spapr: increase the size of the IRQ number space
commitae837402379b649e942b6a968de88b94585a5c84
authorCédric Le Goater <clg@kaod.org>
Tue, 11 Sep 2018 05:55:03 +0000 (11 07:55 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 25 Sep 2018 01:12:25 +0000 (25 11:12 +1000)
tree56793c8a5fc22c96f9bb5f06fb58169f15fe36c7
parente39de895f6adc3a274f3116d4f38845d8fcbf135
spapr: increase the size of the IRQ number space

The new layout using static IRQ number does not leave much space to
the dynamic MSI range, only 0x100 IRQ numbers. Increase the total
number of IRQS for newer machines and introduce a legacy XICS backend
for pre-3.1 machines to maintain compatibility.

For the old backend, provide a 'nr_msis' value covering the full IRQ
number space as it does not use the bitmap allocator to allocate MSI
interrupt numbers.

Signed-off-by: Cédric Le Goater <clg@kaod.org>
Reviewed-by: Greg Kurz <groug@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/ppc/spapr.c
hw/ppc/spapr_irq.c
include/hw/ppc/spapr_irq.h