mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-02 23:33:54 -06:00
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>
This commit is contained in:
parent
0da41d3c5a
commit
d1214b819f
4 changed files with 19 additions and 2 deletions
|
@ -324,9 +324,12 @@ typedef struct XiveTCTX {
|
|||
/*
|
||||
* XIVE Router
|
||||
*/
|
||||
typedef struct XiveFabric XiveFabric;
|
||||
|
||||
typedef struct XiveRouter {
|
||||
SysBusDevice parent;
|
||||
|
||||
XiveFabric *xfb;
|
||||
} XiveRouter;
|
||||
|
||||
#define TYPE_XIVE_ROUTER "xive-router"
|
||||
|
@ -402,8 +405,6 @@ int xive_presenter_tctx_match(XivePresenter *xptr, XiveTCTX *tctx,
|
|||
* XIVE Fabric (Interface between Interrupt Controller and Machine)
|
||||
*/
|
||||
|
||||
typedef struct XiveFabric XiveFabric;
|
||||
|
||||
#define TYPE_XIVE_FABRIC "xive-fabric"
|
||||
#define XIVE_FABRIC(obj) \
|
||||
INTERFACE_CHECK(XiveFabric, (obj), TYPE_XIVE_FABRIC)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue