]> git.proxmox.com Git - qemu.git/commit - hw/spapr_vio.c
pseries: Fix bug with reset of VIO CRQs
authorDavid Gibson <david@gibson.dropbear.id.au>
Wed, 28 Mar 2012 21:39:46 +0000 (08:39 +1100)
committerAndreas Färber <afaerber@suse.de>
Sun, 15 Apr 2012 15:07:19 +0000 (17:07 +0200)
commit8e01f355db4c7e54b0877a6d9508e83d0afbc4b6
tree575b675caf78fcc6f2f223d065f8b8ef9524e6a4
parentd9599c9205089805cd6ef55985beeb06aef0c819
pseries: Fix bug with reset of VIO CRQs

PAPR specifies a Command Response Queue (CRQ) mechanism used for virtual
IO, which we implement.  However, we don't correctly clean up registered
CRQs when we reset the system.

This patch adds a reset handler to fix this bug.  While we're at it, add
in some of the extra debug messages that were used to track the problem
down.

Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
[AF: Updated hcall_dprintf()s to not duplicate the function name]
Signed-off-by: Andreas Färber <afaerber@suse.de>
hw/spapr_vio.c