pseries: Correctly use the device model reset hooks
commitb1c7f725a3bc5fec87912e907066edd6b80b878c
authorDavid Gibson <david@gibson.dropbear.id.au>
Thu, 12 Apr 2012 02:44:13 +0000 (12 12:44 +1000)
committerAndreas Färber <afaerber@suse.de>
Sun, 15 Apr 2012 18:02:28 +0000 (15 20:02 +0200)
treef0dc5ea24401023577b1e29b7739e1e3cacbd7ec
parent91067bf8689ad4a4489a5080812619a9eb932716
pseries: Correctly use the device model reset hooks

Recently we added code to properly clean away VIO CRQs on reset  However,
this directly uses qemu_register, rather than the existing device model
reset callbacks.  This patch cleans this up by adding proper use of the
reset hook to the VIO bus model.  The existing CRQ reset code is converted
to the new method.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/spapr_vio.c
hw/spapr_vio.h