s390/mm: enable ARCH_HAS_SET_DIRECT_MAP
authorHeiko Carstens <hca@linux.ibm.com>
Fri, 14 Apr 2023 12:30:44 +0000 (14:30 +0200)
committerVasily Gorbik <gor@linux.ibm.com>
Thu, 20 Apr 2023 09:36:29 +0000 (11:36 +0200)
commit0490d6d7ba0a479fdd805da54ae25220ce5b514d
treeea909a411bcdc09f10a4070b3a0d1a9d15f37907
parent17c51b1ba9c2d4b497349ac1622aafe67be16103
s390/mm: enable ARCH_HAS_SET_DIRECT_MAP

Implement the set_direct_map_*() API, which allows to invalidate and set
default permissions to pages within the direct mapping.

Note that kernel_page_present(), which is also supposed to be part of this
API, is intentionally not implemented. The reason for this is that
kernel_page_present() is only used (and currently only makes sense) for
suspend/resume, which isn't supported on s390.

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
arch/s390/Kconfig
arch/s390/include/asm/set_memory.h
arch/s390/mm/pageattr.c