pc-bios: Add support for List-Directed IPL from ECKD DASD
authorJared Rossi <jrossi@linux.ibm.com>
Tue, 21 Feb 2023 17:45:48 +0000 (12:45 -0500)
committerThomas Huth <thuth@redhat.com>
Wed, 8 Mar 2023 07:57:42 +0000 (08:57 +0100)
commit8af5d141713f5d20c4bc1719eb746ef8b1746bd6
tree59bc1f5ac9d8416b2e02bda02a43839312c2f175
parent4477035ec685be4c20d1213779f7ca00e867c3b8
pc-bios: Add support for List-Directed IPL from ECKD DASD

Check for a List Directed IPL Boot Record, which would supersede the CCW type
entries.  If the record is valid, proceed to use the new style pointers
and perform LD-IPL. Each block pointer is interpreted as either an LD-IPL
pointer or a legacy CCW pointer depending on the type of IPL initiated.

In either case CCW- or LD-IPL is transparent to the user and will boot the same
image regardless of which set of pointers is used. Because the interactive boot
menu is only written with the old style pointers, the menu will be disabled for
List Directed IPL from ECKD DASD.

If the LD-IPL fails, retry the IPL using the CCW type pointers.

If no LD-IPL boot record is found, simply perform CCW type IPL as usual.

Signed-off-by: Jared Rossi <jrossi@linux.ibm.com>
Message-Id: <20230221174548.1866861-2-jrossi@linux.ibm.com>
[thuth: Drop some superfluous parantheses]
Signed-off-by: Thomas Huth <thuth@redhat.com>
pc-bios/s390-ccw/bootmap.c
pc-bios/s390-ccw/bootmap.h