s390/kexec: set end-of-ipl flag in last diag308 call
authorAlexander Egorenkov <egorenar@linux.ibm.com>
Fri, 3 Sep 2021 09:08:48 +0000 (11:08 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 25 Apr 2022 11:54:12 +0000 (13:54 +0200)
commit2ba24343bdb8637135bd0d9b5e249c44bd751670
treea2ab5eb17592f217dc2e23bf47b5eeeb54bcd564
parent1b553839e1326b6a73431e399f575862696be51b
s390/kexec: set end-of-ipl flag in last diag308 call

If the facility IPL-complete-control is present then the last diag308
call made by kexec shall set the end-of-ipl flag in the subcode register
to signal the hypervisor that this is the last diag308 call made by Linux.
Only the diag308 calls made during a regular kexec need to set
the end-of-ipl flag, in all other cases the hypervisor will ignore it.

Signed-off-by: Alexander Egorenkov <egorenar@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/ipl.h
arch/s390/kernel/machine_kexec.c
arch/s390/kernel/relocate_kernel.S