提交 717086d0 编写于 作者: C Christian Borntraeger 提交者: Michael Roth

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: NChristian Borntraeger <borntraeger@de.ibm.com>
Cc: qemu-stable@nongnu.org
Signed-off-by: NCornelia Huck <cornelia.huck@de.ibm.com>
(cherry picked from commit 6504a930)
Signed-off-by: NMichael Roth <mdroth@linux.vnet.ibm.com>
上级 ff4be47d
...@@ -803,6 +803,8 @@ static void virtio_ccw_reset(DeviceState *d) ...@@ -803,6 +803,8 @@ static void virtio_ccw_reset(DeviceState *d)
virtio_reset(dev->vdev); virtio_reset(dev->vdev);
css_reset_sch(dev->sch); css_reset_sch(dev->sch);
dev->indicators = 0;
dev->indicators2 = 0;
} }
/**************** Virtio-ccw Bus Device Descriptions *******************/ /**************** Virtio-ccw Bus Device Descriptions *******************/
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册