From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:49043) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrW49-0000wo-Gu for qemu-devel@nongnu.org; Tue, 25 Jun 2013 12:26:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UrW48-00029V-8R for qemu-devel@nongnu.org; Tue, 25 Jun 2013 12:26:01 -0400 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:49531) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UrW47-000299-So for qemu-devel@nongnu.org; Tue, 25 Jun 2013 12:26:00 -0400 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 25 Jun 2013 17:23:34 +0100 From: Cornelia Huck Date: Tue, 25 Jun 2013 18:25:36 +0200 Message-Id: <1372177538-9812-2-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1372177538-9812-1-git-send-email-cornelia.huck@de.ibm.com> References: <1372177538-9812-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PULL 1/3] s390/virtio-ccw: Fix virtio reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Anthony Liguori , qemu-stable@nongnu.org, Blue Swirl , Christian Borntraeger , Cornelia Huck , =?UTF-8?q?Aur=C3=A9lien=20Jarno?= From: Christian Borntraeger 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 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 *******************/ -- 1.7.9.5