xive: Link "xive" property to XiveSource::xive pointer
commit82ea3a1b291527ef67315f00e50cbbc105b7d739
authorGreg Kurz <groug@kaod.org>
Fri, 15 Nov 2019 15:55:32 +0000 (15 16:55 +0100)
committerDavid Gibson <david@gibson.dropbear.id.au>
Mon, 16 Dec 2019 23:39:47 +0000 (17 10:39 +1100)
tree210cbc9a4c611b155b89a178b4e7515aef508200
parent411c2a619e713bbfa175e72ed6d754a673e299fc
xive: Link "xive" property to XiveSource::xive pointer

The source object has both a pointer and a "xive" property pointing to the
notifier 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: <157383333227.165747.12901571295951957951.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
hw/ppc/pnv_psi.c