Received: from eggs.gnu.org ([2001:4830:134:3::10]:48060) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9qJA-0003m6-BJ for qemu-devel@nongnu.org; Tue, 30 Jun 2015 03:50:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z9qIy-0002eI-KR for qemu-devel@nongnu.org; Tue, 30 Jun 2015 03:50:20 -0400 Received: from e06smtp12.uk.ibm.com ([195.75.94.108]:53969) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z9qIy-0002PX-8P for qemu-devel@nongnu.org; Tue, 30 Jun 2015 03:50:08 -0400 Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Tue, 30 Jun 2015 08:50:04 +0100 Date: Tue, 30 Jun 2015 09:50:00 +0200 From: Cornelia Huck Message-ID: <20150630095000.5aeb8dd8.cornelia.huck@de.ibm.com> In-Reply-To: <1434642868-18685-1-git-send-email-borntraeger@de.ibm.com> References: <1434642868-18685-1-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] [PATCH/RFC] s390x/ipl: Fix boot if no bootindex was specified List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Christian Borntraeger Cc: Paolo Bonzini , qemu-stable@nongnu.org, qemu-devel , Aurelien Jarno , Alexander Graf On Thu, 18 Jun 2015 17:54:28 +0200 Christian Borntraeger wrote: > commit fa92e218df1d ("s390x/ipl: avoid sign extension") introduced > a regression: > > qemu-system-s390x -drive file=/home/cborntra/image.zhyp409,format=qcow2 > does not boot, the bios states > "No virtio-blk device found!" > > adding bootindex=1 does boot. > > The reason is that the uint32_t as return value will not do the right > thing for the return -1 (default without bootindex). > The bios itself, will interpret a 64bit -1 as autodetect (but it will > interpret 32bit -1 as ccw device address ff.ff.ffff) > > Signed-off-by: Christian Borntraeger > Cc: Paolo Bonzini > Cc: Cornelia Huck > Cc: qemu-stable@nongnu.org # v2.3.0 > --- > hw/s390x/ipl.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) > Applied to my s390-next branch.