s390/fpu: use KERNEL_VXR_LOW instead of KERNEL_VXR_V0V7
authorHeiko Carstens <hca@linux.ibm.com>
Sat, 3 Feb 2024 10:45:00 +0000 (11:45 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Fri, 16 Feb 2024 13:30:14 +0000 (14:30 +0100)
commitb6b842becd734301349b2fbe8d31099ea3d22a0f
tree6b14f3c53bcb0b3dbf5d101d887dc55be6d63e8a
parent9e96afab8c0fadafc3fa2dbb2f233a641d7fe229
s390/fpu: use KERNEL_VXR_LOW instead of KERNEL_VXR_V0V7

Use KERNEL_VXR_LOW instead of KERNEL_VXR_V0V7 for configurations without
vector registers in order to decide if floating point registers need to be
saved and restored.

Kernel FPU areas which use floating point registers are supposed to use the
KERNEL_FPR mask, however users may also open-code this and specify
KERNEL_VXR_V0V7 and/or KERNEL_VXR_V8V15. If only KERNEL_VXR_V8V15 is
specified floating point registers wouldn't be saved and restored. Improve
this and check for both bits.

There are currently no users where this would fix a bug.

Reviewed-by: Claudio Imbrenda <imbrenda@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/kernel/fpu.c