s390/tlb: Convert MACHINE_HAS_TLB_GUEST to machine_has_tlb_guest()
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 7 Feb 2025 14:49:00 +0000 (15:49 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Tue, 4 Mar 2025 16:18:06 +0000 (17:18 +0100)
commit17d3804808091e3942d2744dc8155a3a918d88c3
treea0ddb8e9c5f29274d66246da57444c0693df57e4
parentf931f67cfc274682aecc9f727eecc89779fc47b7
s390/tlb: Convert MACHINE_HAS_TLB_GUEST to machine_has_tlb_guest()

Use static branch(es) to implement and use machine_has_tlb_guest()
instead of a runtime check via MACHINE_HAS_TLB_GUEST.

Also add sclp_early_detect_machine_features() in order to allow for
feature detection from the decompressor.

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/boot/startup.c
arch/s390/include/asm/machine.h
arch/s390/include/asm/sclp.h
arch/s390/include/asm/setup.h
arch/s390/include/asm/tlbflush.h
arch/s390/kvm/kvm-s390.c
arch/s390/mm/gmap.c
arch/s390/mm/pgtable.c
drivers/s390/char/sclp_early.c
drivers/s390/char/sclp_early_core.c