Received: from eggs.gnu.org ([2001:4830:134:3::10]:40396) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDsll-0000rS-RA for qemu-devel@nongnu.org; Thu, 13 Feb 2014 04:39:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WDslc-0004LQ-RX for qemu-devel@nongnu.org; Thu, 13 Feb 2014 04:39:45 -0500 Received: from e06smtp14.uk.ibm.com ([195.75.94.110]:41147) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WDslc-0004LA-Gi for qemu-devel@nongnu.org; Thu, 13 Feb 2014 04:39:36 -0500 Received: from /spool/local by e06smtp14.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Thu, 13 Feb 2014 09:39:35 -0000 Received: from b06cxnps4076.portsmouth.uk.ibm.com (d06relay13.portsmouth.uk.ibm.com [9.149.109.198]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id F007A1B08078 for ; Thu, 13 Feb 2014 09:39:07 +0000 (GMT) Received: from d06av03.portsmouth.uk.ibm.com (d06av03.portsmouth.uk.ibm.com [9.149.37.213]) by b06cxnps4076.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s1D9dK8263045830 for ; Thu, 13 Feb 2014 09:39:20 GMT Received: from d06av03.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av03.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s1D9dUIo007547 for ; Thu, 13 Feb 2014 02:39:32 -0700 Date: Thu, 13 Feb 2014 10:39:28 +0100 From: Cornelia Huck Message-ID: <20140213103928.1046e5c3.cornelia.huck@de.ibm.com> In-Reply-To: <1392283031-40129-3-git-send-email-borntraeger@de.ibm.com> References: <1392283031-40129-1-git-send-email-borntraeger@de.ibm.com> <1392283031-40129-3-git-send-email-borntraeger@de.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PULL 2/3] s390-ccw.img: Fix sporadic errors with ccw boot image - initialize css List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: Peter Maydell , qemu-devel , Alexander Graf , Jens Freimann , Anthony Liguori , Andreas =?UTF-8?B?RsOkcmJlcg==?= , Richard Henderson On Thu, 13 Feb 2014 10:17:10 +0100 Christian Borntraeger wrote: > We have to set the cssid to 0, otherwise the stsch code will > return an operand exception without the m bit. In the same way > we should set m=0. > > This case was triggered in some cases during reboot, if for some > reason the location of blk_schid.cssid contains 1 and m was 0. > Turns out that the qemu elf loader does not zero out the bss section. > On first boot this is ok, but on reboots this might fail. > > The symptom was an dump of the old kernel with several areas > overwritten. The bootloader does not register a program check > handler, so bios exception jumped back into the old kernel. > > Lets just use a local struct with a designed initializer. That > will guarantee that all other subelements are initialized to 0. > > Signed-off-by: Christian Borntraeger > --- > pc-bios/s390-ccw/main.c | 3 +-- > 1 file changed, 1 insertion(+), 2 deletions(-) Reviewed-by: Cornelia Huck