Skip to contentSkip to conversation

virtio-ccw: reset bugfix

PATCH New Cornelia Huck 1 participant 2 messages Jun 13, 2013

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 virtio-ccw: reset bugfix

Hi,

here's another virtio-ccw bugfix which makes rebooting work better here.

Christian Borntraeger (1):
s390/virtio-ccw: Fix virtio reset

 hw/s390x/virtio-ccw.c |    2 ++
 1 file changed, 2 insertions(+)
Signature · 1 line
1.7.9.5
#1 lore raw

PATCH 1/1 s390/virtio-ccw: Fix virtio reset

From: Christian Borntraeger <[email protected]>

On virtio reset we must reset the indicator to avoid stale interrupts, e.g. after a reset.

---
 hw/s390x/virtio-ccw.c |    2 ++
 1 file changed, 2 insertions(+)
hw/s390x/virtio-ccw.c +2 -0
index 44f5772..4a45dc5 100644
@@ -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 *******************/
Signature · 1 line
1.7.9.5