summaryrefslogtreecommitdiff
path: root/drivers/s390
diff options
context:
space:
mode:
authorClaudio Imbrenda <imbrenda@linux.ibm.com>2024-04-16 14:42:20 +0300
committerAlexander Gordeev <agordeev@linux.ibm.com>2024-04-22 13:47:47 +0300
commit412050af2ea39407fe43324b0be4ab641530ce88 (patch)
tree5b75501808ba00c6e3920c647920cc9ab0ff944b /drivers/s390
parent843c3280686fc1a83d89ee1e0b5599c9f6b09d0c (diff)
downloadlinux-412050af2ea39407fe43324b0be4ab641530ce88.tar.xz
s390/mm: Fix clearing storage keys for huge pages
The function __storage_key_init_range() expects the end address to be the first byte outside the range to be initialized. I.e. end - start should be the size of the area to be initialized. The current code works because __storage_key_init_range() will still loop over every page in the range, but it is slower than using sske_frame(). Fixes: 3afdfca69870 ("s390/mm: Clear skeys for newly mapped huge guest pmds") Reviewed-by: Heiko Carstens <hca@linux.ibm.com> Signed-off-by: Claudio Imbrenda <imbrenda@linux.ibm.com> Link: https://lore.kernel.org/r/20240416114220.28489-3-imbrenda@linux.ibm.com Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions