summaryrefslogtreecommitdiffstats
path: root/hw/s390x
diff options
context:
space:
mode:
authorChristian Borntraeger <borntraeger@de.ibm.com>2013-06-07 12:18:46 +0200
committerCornelia Huck <cornelia.huck@de.ibm.com>2013-06-25 17:11:11 +0200
commit6504a93011138458a2e4f67b513c5a77bdb3cae1 (patch)
treec7bbd1200ec4f6d345f09c3f14181bb7f7a5a378 /hw/s390x
parentbaf8673ca802cb3ea2cdbe94813441d23bde223b (diff)
downloadhqemu-6504a93011138458a2e4f67b513c5a77bdb3cae1.zip
hqemu-6504a93011138458a2e4f67b513c5a77bdb3cae1.tar.gz
s390/virtio-ccw: Fix virtio reset
On virtio reset we must reset the indicator to avoid stale interrupts, e.g. after a reset. Signed-off-by: Christian Borntraeger <borntraeger@de.ibm.com> Cc: qemu-stable@nongnu.org Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
Diffstat (limited to 'hw/s390x')
-rw-r--r--hw/s390x/virtio-ccw.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c
index 201a635..de51589 100644
--- a/hw/s390x/virtio-ccw.c
+++ b/hw/s390x/virtio-ccw.c
@@ -803,6 +803,8 @@ static void virtio_ccw_reset(DeviceState *d)
virtio_reset(dev->vdev);
css_reset_sch(dev->sch);
+ dev->indicators = 0;
+ dev->indicators2 = 0;
}
/**************** Virtio-ccw Bus Device Descriptions *******************/
OpenPOWER on IntegriCloud