]> git.ipfire.org Git - thirdparty/qemu.git/commit
hw/s390x: Build an IPLB for each boot device
authorJared Rossi <jrossi@linux.ibm.com>
Sun, 20 Oct 2024 01:29:49 +0000 (21:29 -0400)
committerThomas Huth <thuth@redhat.com>
Wed, 23 Oct 2024 04:53:44 +0000 (06:53 +0200)
commit0927875e704e93ace03bb7533c0877bf97e4bda9
treeae4abd96eb49ab95c8e19575611442a35be08f20
parentbb185de42339025db9bbd5aa11f3f644c2a077f8
hw/s390x: Build an IPLB for each boot device

Build an IPLB for any device with a bootindex (up to a maximum of 8 devices).

The IPLB chain is placed immediately before the BIOS in memory. Because this
is not a fixed address, the location of the next IPLB and number of remaining
boot devices is stored in the QIPL global variable for possible later access by
the guest during IPL.

Signed-off-by: Jared Rossi <jrossi@linux.ibm.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Message-ID: <20241020012953.1380075-16-jrossi@linux.ibm.com>
[thuth: Fix endianness problem when accessing the qipl structure]
Signed-off-by: Thomas Huth <thuth@redhat.com>
hw/s390x/ipl.c
hw/s390x/ipl.h
include/hw/s390x/ipl/qipl.h