From 6504a93011138458a2e4f67b513c5a77bdb3cae1 Mon Sep 17 00:00:00 2001 From: Christian Borntraeger Date: Fri, 7 Jun 2013 12:18:46 +0200 Subject: 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 Cc: qemu-stable@nongnu.org Signed-off-by: Cornelia Huck --- hw/s390x/virtio-ccw.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hw/s390x/virtio-ccw.c b/hw/s390x/virtio-ccw.c index 201a635607..de51589bcc 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 *******************/ -- cgit v1.2.3