spapr, pnv, xive: Add a "xive-fabric" link to the XIVE router
commitd1214b819f26dcf95329af624e74bf42eeeb1a9a
authorGreg Kurz <groug@kaod.org>
Mon, 6 Jan 2020 14:56:37 +0000 (6 15:56 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 8 Jan 2020 00:01:59 +0000 (8 11:01 +1100)
tree38e7e8832da82cb6ba565644d598f4ff975eb5a2
parent0da41d3c5af7897e742c2fa4f6a5c5609b86c493
spapr, pnv, xive: Add a "xive-fabric" link to the XIVE router

In order to get rid of qdev_get_machine(), first add a pointer to the
XIVE fabric under the XIVE router and make it configurable through a
QOM link property.

Configure it in the spapr and pnv machine. In the case of pnv, the XIVE
routers are under the chip, so this is done with a QOM alias property of
the POWER9 pnv chip.

Signed-off-by: Greg Kurz <groug@kaod.org>
Signed-off-by: Cédric Le Goater <clg@kaod.org>
Message-Id: <20200106145645.4539-5-clg@kaod.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/xive.c
hw/ppc/pnv.c
hw/ppc/spapr_irq.c
include/hw/ppc/xive.h