s390/uaccess: Implement __get_kernel_nofault()/__put_kernel_nofault() with mvc
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 13 Jan 2025 12:36:59 +0000 (13:36 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Sun, 26 Jan 2025 16:24:05 +0000 (17:24 +0100)
commit5b629e64e5dd22d2f68f730f0c341342d9b83dda
treee2bbe1e49dee2a2d0e5724af8aa7a7ea54fea294
parent722926ecbcb36c41e3cf3f051aa6cfbfaebe5959
s390/uaccess: Implement __get_kernel_nofault()/__put_kernel_nofault() with mvc

Use the mvc instruction in order to implement __get_kernel_nofault() and
__put_kernel_nofault(). Both functions have a source and destination
address where the code is supposed to read from and write to. Use the mvc
instruction to copy from source to destination instead of lg/stg like
instructions. This generates slightly better code.

Acked-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/uaccess.h