Received: from eggs.gnu.org ([2001:4830:134:3::10]:36064) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDsPv-0004cV-6m for qemu-devel@nongnu.org; Thu, 13 Feb 2014 04:17:20 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDsPm-0005BH-9P for qemu-devel@nongnu.org; Thu, 13 Feb 2014 04:17:11 -0500 Received: from e06smtp17.uk.ibm.com ([195.75.94.113]:39108) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDsPl-0005Ad-WA for qemu-devel@nongnu.org; Thu, 13 Feb 2014 04:17:02 -0500 Received: from /spool/local by e06smtp17.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Feb 2014 09:16:58 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp02.portsmouth.uk.ibm.com (Postfix) with ESMTP id C38D9219005C for ; Thu, 13 Feb 2014 09:16:54 +0000 (GMT) Received: from d06av04.portsmouth.uk.ibm.com (d06av04.portsmouth.uk.ibm.com [9.149.37.216]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s1D9GjPE50855948 for ; Thu, 13 Feb 2014 09:16:45 GMT Received: from d06av04.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av04.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s1D9GqsU025393 for ; Thu, 13 Feb 2014 02:16:56 -0700 From: Christian Borntraeger Date: Thu, 13 Feb 2014 10:17:09 +0100 Message-Id: <1392283031-40129-2-git-send-email-borntraeger@de.ibm.com> In-Reply-To: <1392283031-40129-1-git-send-email-borntraeger@de.ibm.com> References: <1392283031-40129-1-git-send-email-borntraeger@de.ibm.com> Subject: [Qemu-devel] [PULL 1/3] s390-ccw.img: Fix sporadic reboot hangs: Initialize next_idx List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori , Peter Maydell Cc: qemu-devel , Alexander Graf , Christian Borntraeger , Jens Freimann , Cornelia Huck , =?UTF-8?q?Andreas=20F=C3=A4rber?= , Richard Henderson The current code does not initialize next_idx as the qemu elf loader does not zero the bss section. Make the initialization explicit. Signed-off-by: Christian Borntraeger --- pc-bios/s390-ccw/virtio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pc-bios/s390-ccw/virtio.c b/pc-bios/s390-ccw/virtio.c index 4d6e48f..a46914d 100644 --- a/pc-bios/s390-ccw/virtio.c +++ b/pc-bios/s390-ccw/virtio.c @@ -124,6 +124,7 @@ static void vring_init(struct vring *vr, unsigned int num, void *p, vr->used->flags = VRING_USED_F_NO_NOTIFY; vr->used->idx = 0; vr->used_idx = 0; + vr->next_idx = 0; debug_print_addr("init vr", vr); } -- 1.8.4.2