s390/boot: Uncouple virtual and physical kernel offsets
authorAlexander Gordeev <agordeev@linux.ibm.com>
Tue, 20 Feb 2024 13:35:43 +0000 (14:35 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Wed, 17 Apr 2024 11:38:00 +0000 (13:38 +0200)
commit3bb11234b1d17236ba479f7d0eaa9bd12f2f2493
treea76dd92c8cb47191c870dc35529c9be12ddb212b
parent236f324b747370b97030c9582591f459353e3589
s390/boot: Uncouple virtual and physical kernel offsets

This is a preparatory rework to allow uncoupling virtual
and physical addresses spaces.

Currently __kaslr_offset is the kernel offset in both
physical memory on boot and in virtual memory after DAT
mode is enabled.

Uncouple these offsets and rename the physical address
space variant to __kaslr_offset_phys while keep the name
__kaslr_offset for the offset in virtual address space.

Do not use __kaslr_offset_phys after DAT mode is enabled
just yet, but still make it a persistent boot variable
for later use.

Use __kaslr_offset and __kaslr_offset_phys offsets in
proper contexts and alter handle_relocs() function to
distinguish between the two.

Acked-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/Kconfig
arch/s390/boot/pgm_check_info.c
arch/s390/boot/startup.c
arch/s390/include/asm/page.h