xive: Use the XIVE fabric link under the XIVE router
commit53981dd50566288904c03e5e7d31b43bc587cb37
authorGreg Kurz <groug@kaod.org>
Mon, 6 Jan 2020 14:56:38 +0000 (6 15:56 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Wed, 8 Jan 2020 00:01:59 +0000 (8 11:01 +1100)
tree79a95b35e20660fcc299832206f21f59544259c5
parentd1214b819f26dcf95329af624e74bf42eeeb1a9a
xive: Use the XIVE fabric link under the XIVE router

Now that the spapr and pnv machines do set the "xive-fabric" link, the
use of the XIVE fabric pointer becomes mandatory. This is checked with
an assert() in a new realize hook. Since the XIVE router is realized at
machine init for the all the machine's life time, no risk to abort an
already running guest (ie. not a hotplug path).

This gets rid of a qdev_get_machine() call.

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