From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:57530) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5w2-0003zN-1l for qemu-devel@nongnu.org; Thu, 13 Jun 2013 07:43:23 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Un5w0-0006jC-5Q for qemu-devel@nongnu.org; Thu, 13 Jun 2013 07:43:21 -0400 Received: from e06smtp11.uk.ibm.com ([195.75.94.107]:52735) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Un5vz-0006iL-SW for qemu-devel@nongnu.org; Thu, 13 Jun 2013 07:43:20 -0400 Received: from /spool/local by e06smtp11.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Jun 2013 12:38:18 +0100 From: Cornelia Huck Date: Thu, 13 Jun 2013 13:43:12 +0200 Message-Id: <1371123792-14031-2-git-send-email-cornelia.huck@de.ibm.com> In-Reply-To: <1371123792-14031-1-git-send-email-cornelia.huck@de.ibm.com> References: <1371123792-14031-1-git-send-email-cornelia.huck@de.ibm.com> Subject: [Qemu-devel] [PATCH] s390/virtio-ccw: Fix virtio reset List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel Cc: Christian Borntraeger , qemu-stable@nongnu.org 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 44f5772..4a45dc5 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