]> git.ipfire.org Git - thirdparty/qemu.git/commit
pseries: Clear TCE and signal state when resetting PAPR VIO devices
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 12 Sep 2012 16:57:13 +0000 (16:57 +0000)
committerAlexander Graf <agraf@suse.de>
Thu, 4 Oct 2012 13:54:17 +0000 (15:54 +0200)
commit4dd96f244f62d5e4b493c1f4071c0d4a4a57474d
tree298d5a3118ab3e6c1cb80a7e1f61046d0527672e
parent7f763a5d994bbddb50705d2e50decdf52937521f
pseries: Clear TCE and signal state when resetting PAPR VIO devices

When we reset the system, the reset method for VIO bus devices resets
the state of their request queue (if present) as it should.  However
it was not resetting the state of their TCE table (DMA translation) if
present.  It was also not resetting the state of the per-device signal
mask set with H_VIO_SIGNAL.  This patch corrects both bugs, and also
removes some small code duplication in the reset paths.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/spapr_vio.c