qemu-irix/hw/s390x
Christian Borntraeger 99c3468d8f s390x/ipl: Fix boot if no bootindex was specified
commit fa92e218df ("s390x/ipl: avoid sign extension") introduced
a regression:

qemu-system-s390x -drive file=image.qcow,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 <borntraeger@de.ibm.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: Cornelia Huck <cornelia.huck@de.ibm.com>
Cc: qemu-stable@nongnu.org # v2.3.0
Tested-by: Aurelien Jarno <aurelien@aurel32.net>
Reviewed-by: Aurelien Jarno <aurelien@aurel32.net>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
(cherry picked from commit 6efd2c2a12)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
2015-07-29 21:47:15 -05:00
..
Makefile.objs s390: implement pci instructions 2015-01-12 10:14:04 +01:00
css.c s390x/ioinst: Rework memory access in STCRW instruction 2015-02-18 09:37:15 +01:00
css.h s390: Add PCI bus support 2015-01-12 10:14:04 +01:00
event-facility.c s390x: Drop not used allow_hotplug in event-facility 2014-10-15 05:03:13 +02:00
ipl.c s390x/ipl: Fix boot if no bootindex was specified 2015-07-29 21:47:15 -05:00
ipl.h s390x/ipl: drop reipl parameters on resets 2015-02-13 16:14:09 +01:00
s390-pci-bus.c s390x/pci: fix length in sei_nt2 event 2015-03-16 10:20:17 +01:00
s390-pci-bus.h s390: Add PCI bus support 2015-01-12 10:14:04 +01:00
s390-pci-inst.c s390x/pci: Rework memory access in zpci instruction 2015-02-18 09:37:15 +01:00
s390-pci-inst.h s390: implement pci instructions 2015-01-12 10:14:04 +01:00
s390-virtio-bus.c s390x/virtio-bus: Remove unused function s390_virtio_bus_console() 2015-03-16 10:20:17 +01:00
s390-virtio-bus.h s390x/virtio-bus: Remove unused function s390_virtio_bus_console() 2015-03-16 10:20:17 +01:00
s390-virtio-ccw.c s390x: CPACF: Handle key wrap machine options 2015-03-16 10:20:11 +01:00
s390-virtio-hcall.c s390x/virtio-hcall: Specification exception for illegal subcodes 2014-02-27 09:51:25 +01:00
s390-virtio.c s390x/kvm: Guest Migration TOD clock synchronization 2015-03-16 10:15:44 +01:00
s390-virtio.h s390: use standard headers 2015-02-26 13:04:06 +01:00
sclp.c s390: Add PCI bus support 2015-01-12 10:14:04 +01:00
sclpcpu.c s390x/cpu hotplug: Fix memory leak 2014-03-17 22:01:19 +01:00
sclpquiesce.c savevm: Remove all the unneeded version_minimum_id_old (rest) 2014-05-14 15:24:51 +02:00
virtio-ccw.c virtio-ccw: complete handling of guest-initiated resets 2015-07-29 18:50:08 -05:00
virtio-ccw.h virtio-ccw: Convert to realize() 2015-03-10 09:26:23 +01:00