]> git.ipfire.org Git - thirdparty/qemu.git/commit
virtio-ccw: complete handling of guest-initiated resets
authorCornelia Huck <cornelia.huck@de.ibm.com>
Tue, 23 Jun 2015 13:46:31 +0000 (15:46 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Wed, 29 Jul 2015 23:50:08 +0000 (18:50 -0500)
commite8248a5af1e7a151cbec9b3e14523e00f118cac7
tree9f56a9e7b6926f69ffa0cbe316155eacd0a597b3
parent81cb0a565795de57672f761f04e29e08dfde067c
virtio-ccw: complete handling of guest-initiated resets

For a guest-initiated reset, we need to not only reset the virtio device,
but also reset the VirtioCcwDevice into a clean state. This includes
resetting the indicators, or else a guest will not be able to e.g.
switch from classic interrupts to adapter interrupts.

Split off this routine into a new function virtio_ccw_reset_virtio()
to make the distinction between resetting the virtio-related devices
and the base subchannel device clear.

CC: qemu-stable@nongnu.org
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: Christian Borntraeger <borntraeger@de.ibm.com>
(cherry picked from commit fa8b0ca5d1b69975b715a259d3586cadf7a5280f)
Conflicts:
hw/s390x/virtio-ccw.c

*removed context dependency on 0b352fd

Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/s390x/virtio-ccw.c