[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-devel] [PATCH/RFC] s390x/ipl: Fix boot if no bootindex was spe
From: |
Aurelien Jarno |
Subject: |
Re: [Qemu-devel] [PATCH/RFC] s390x/ipl: Fix boot if no bootindex was specified |
Date: |
Thu, 18 Jun 2015 19:26:51 +0200 |
User-agent: |
Mutt/1.5.23 (2014-03-12) |
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 <address@hidden>
> Cc: Paolo Bonzini <address@hidden>
> Cc: Cornelia Huck <address@hidden>
> Cc: address@hidden # 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 <address@hidden>
Reviewed-by: Aurelien Jarno <address@hidden>
--
Aurelien Jarno GPG: 4096R/1DDD8C9B
address@hidden http://www.aurel32.net