spapr: Remove SpaprIrq::nr_msis
commit8cbe71ecb8c1336b5ef96d64771608e02d88d4e3
authorDavid Gibson <david@gibson.dropbear.id.au>
Fri, 27 Sep 2019 03:44:58 +0000 (27 13:44 +1000)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 23 Oct 2019 22:36:55 +0000 (24 09:36 +1100)
treeea0c5a1902b5247059972242f5c86576ca8ea23c
parent605994e5b7d17dcc275465b4f89816d29105b238
spapr: Remove SpaprIrq::nr_msis

The nr_msis value we use here has to line up with whether we're using
legacy or modern irq allocation.  Therefore it's safer to derive it based
on legacy_irq_allocation rather than having SpaprIrq contain a canned
value.

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