Skip to content
Snippets Groups Projects
Commit 872882e7 authored by Jason J. Herne's avatar Jason J. Herne Committed by Cornelia Huck
Browse files

s390-bios: Skip writing iplb location to low core for ccw ipl


The architecture states that the iplb location is only written to low
core for list directed ipl and not for traditional ccw ipl. If we don't
skip this then operating systems that load by reading into low core
memory may fail to start.

We should also not write the iplb pointer for network boot as it might
overwrite content that we got via network.

Fixes: 9bfc04f9 ("pc-bios: s390x: Save iplb location in lowcore")
Signed-off-by: default avatarJason J. Herne <jjherne@linux.ibm.com>
Signed-off-by: default avatarChristian Borntraeger <borntraeger@de.ibm.com>
Acked-by: default avatarThomas Huth <thuth@redhat.com>
Message-Id: <20201030122823.347140-1-borntraeger@de.ibm.com>
Signed-off-by: default avatarCornelia Huck <cohuck@redhat.com>
parent 3d6e3234
No related branches found
No related tags found
No related merge requests found
......@@ -43,7 +43,9 @@ void write_subsystem_identification(void)
void write_iplb_location(void)
{
lowcore->ptr_iplb = ptr2u32(&iplb);
if (cutype == CU_TYPE_VIRTIO && virtio_get_device_type() != VIRTIO_ID_NET) {
lowcore->ptr_iplb = ptr2u32(&iplb);
}
}
unsigned int get_loadparm_index(void)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment