spapr_pci: add an extra 'nr_msis' argument to spapr_populate_pci_dt
commit0976efd51bbfb28292704a248cb9454fc12f911d
authorCédric Le Goater <clg@kaod.org>
Thu, 13 Sep 2018 05:16:05 +0000 (13 07:16 +0200)
committerDavid Gibson <david@gibson.dropbear.id.au>
Tue, 25 Sep 2018 01:12:25 +0000 (25 11:12 +1000)
tree79d8e5ca2612c43d863071fdfb0898ab5ec377a4
parentae837402379b649e942b6a968de88b94585a5c84
spapr_pci: add an extra 'nr_msis' argument to spapr_populate_pci_dt

So that we don't have to call qdev_get_machine() to get the machine
class and the sPAPRIrq backend holding the number of MSIs.

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_pci.c
include/hw/pci-host/spapr.h