xive: Link "xive" property to XiveEndSource::xrtr pointer
commit0ab2316e9e605af500fcefc60e39c8dc62fbd161
authorGreg Kurz <groug@kaod.org>
Fri, 15 Nov 2019 15:55:37 +0000 (15 16:55 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (17 10:39 +1100)
tree328f4637347a30c3400879e18b7cff67cf4ef1b5
parent82ea3a1b291527ef67315f00e50cbbc105b7d739
xive: Link "xive" property to XiveEndSource::xrtr pointer

The END source object has both a pointer and a "xive" property pointing to
the router object. Confusing bugs could arise if these ever go out of sync.

Change the property definition so that it explicitely sets the pointer.
The property isn't optional : not being able to set the link is a bug
and QEMU should rather abort than exit in this case.

Signed-off-by: Greg Kurz <groug@kaod.org>
Message-Id: <157383333784.165747.5298512574054268786.stgit@bahia.lan>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
hw/intc/pnv_xive.c
hw/intc/spapr_xive.c
hw/intc/xive.c