qemu-e2k/pc-bios/s390-ccw
Eric Farman de4e3ae408 pc-bios/s390-ccw: Build a reasonable max_sectors limit
Now that we've read all the possible limits that have been defined for
a virtio-scsi controller and the disk we're booting from, it's possible
that we are STILL going to exceed the limits of the host device.
For example, a "-device scsi-generic" device does not support the
Block Limits VPD page.

So, let's fallback to something that seems to work for most boot
configurations if larger values were specified (including if nothing
was explicitly specified, and we took default values).

Signed-off-by: Eric Farman <farman@linux.vnet.ibm.com>
Message-Id: <20170510155359.32727-8-farman@linux.vnet.ibm.com>
Signed-off-by: Cornelia Huck <cornelia.huck@de.ibm.com>
2017-05-19 12:29:01 +02:00
..
bootmap.c pc-bios/s390-ccw: add boot entry selection to El Torito routine 2017-05-02 15:08:54 +02:00
bootmap.h pc-bios/s390-ccw: add boot entry selection for ECKD DASD 2017-05-02 15:08:54 +02:00
cio.h s390/IPL: Allow boot from other ssid than 0 2013-07-29 12:02:00 +02:00
iplb.h pc-bios/s390-ccw: Use the ccw bios to start the network boot 2017-02-28 12:04:48 +01:00
main.c pc-bios/s390-ccw: provide a function to interpret LOADPARM value 2017-05-02 15:08:54 +02:00
Makefile pc-bios/s390-ccw: get LOADPARM stored in SCP Read Info 2017-05-02 15:08:54 +02:00
s390-ccw.h pc-bios/s390-ccw: Break up virtio-scsi read into multiples 2017-05-19 12:29:01 +02:00
sclp.c pc-bios/s390-ccw: get LOADPARM stored in SCP Read Info 2017-05-02 15:08:54 +02:00
sclp.h pc-bios/s390-ccw: get LOADPARM stored in SCP Read Info 2017-05-02 15:08:54 +02:00
scsi.h pc-bios/s390-ccw: Get Block Limits VPD device data 2017-05-19 12:29:01 +02:00
start.S pc-bios/s390-ccw: Get device address via diag 308/6 2016-05-17 15:50:29 +02:00
virtio-scsi.c pc-bios/s390-ccw: Build a reasonable max_sectors limit 2017-05-19 12:29:01 +02:00
virtio-scsi.h pc-bios/s390-ccw: Build a reasonable max_sectors limit 2017-05-19 12:29:01 +02:00
virtio.c pc-bios/s390-ccw: Use the ccw bios to start the network boot 2017-02-28 12:04:48 +01:00
virtio.h pc-bios/s390-ccw: Get Block Limits VPD device data 2017-05-19 12:29:01 +02:00