s390/traps,mm: add conditional trap handlers
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 9 Apr 2021 08:34:43 +0000 (10:34 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 12 Apr 2021 10:46:42 +0000 (12:46 +0200)
commit17a363dcd2f7455d8661a7b2f9ba7cfb85bbc7e4
tree15b3c8c49de3ed353e3b7f5a6ff41ee50fd725b1
parent61311e32892b008886478bdba4ce2a34f4d938f8
s390/traps,mm: add conditional trap handlers

Add conditional trap handlers similar to conditional system calls
(COND_SYSCALL), to reduce the number of ifdefs.

Trap handlers which may or may not exist depending on config options
are supposed to have a COND_TRAP entry, which redirects to
default_trap_handler() for non-existent trap handlers during link
time.

This allows to get rid of the secure execution trap handlers for the
!PGSTE case.

Reviewed-by: Vasily Gorbik <gor@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/entry.h
arch/s390/kernel/traps.c
arch/s390/mm/fault.c