]> git.ipfire.org Git - thirdparty/qemu.git/commitdiff
s390/virtio-ccw: Fix virtio reset
authorChristian Borntraeger <borntraeger@de.ibm.com>
Fri, 7 Jun 2013 10:18:46 +0000 (12:18 +0200)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Mon, 12 Aug 2013 19:36:08 +0000 (14:36 -0500)
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>
(cherry picked from commit 6504a93011138458a2e4f67b513c5a77bdb3cae1)

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

index 201a635607c34c472b766323beca536ed3dc68f4..de51589bcc4a7aa63d57acad0949488964771268 100644 (file)
@@ -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 *******************/