Skip to content
Commit e8248a5a authored by Cornelia Huck's avatar Cornelia Huck Committed by Michael Roth
Browse files

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: default avatarCornelia Huck <cornelia.huck@de.ibm.com>
Reviewed-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
(cherry picked from commit fa8b0ca5)
Conflicts:
	hw/s390x/virtio-ccw.c

*removed context dependency on 0b352fd6

Signed-off-by: default avatarMichael Roth <mdroth@linux.vnet.ibm.com>
parent 81cb0a56
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment