Received: from eggs.gnu.org ([2001:4830:134:3::10]:49016) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z5daj-0005Bj-Ts for qemu-devel@nongnu.org; Thu, 18 Jun 2015 13:27:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z5dai-0000OE-U6 for qemu-devel@nongnu.org; Thu, 18 Jun 2015 13:27:05 -0400 Date: Thu, 18 Jun 2015 19:26:51 +0200 From: Aurelien Jarno Message-ID: <20150618172651.GA1856@aurel32.net> References: <1434642868-18685-1-git-send-email-borntraeger@de.ibm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1434642868-18685-1-git-send-email-borntraeger@de.ibm.com> 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: Alexander Graf , qemu-stable@nongnu.org, qemu-devel , #@tuxmaker.boeblingen.de.ibm.com, Cornelia Huck , Paolo Bonzini , v2.3.0@tuxmaker.boeblingen.de.ibm.com On 2015-06-18 17:54, 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(-) Thanks for the quick patch, I confirmed it works. Tested-by: Aurelien Jarno Reviewed-by: Aurelien Jarno -- Aurelien Jarno GPG: 4096R/1DDD8C9B aurelien@aurel32.net http://www.aurel32.net