s390/acrs: cleanup access register handling
authorHeiko Carstens <hca@linux.ibm.com>
Mon, 5 Feb 2024 20:32:12 +0000 (21:32 +0100)
committerHeiko Carstens <hca@linux.ibm.com>
Mon, 12 Feb 2024 14:03:33 +0000 (15:03 +0100)
commit304103736ba75be70991cd6336c28121d7bf14f5
tree192db4127392ab2e40aa669f7cc1717e6d40e449
parentf78bcb2e26dcac39a637e14c0ede9499822cb872
s390/acrs: cleanup access register handling

save_access_regs() and restore_access_regs() are only available by
including switch_to.h. This is done by a couple of C files, which have
nothing to do with switch_to(), but only need these functions.

Move both functions to a new header file and improve the implementation:

- Get rid of typedef

- Add memory access instrumentation support

- Use long displacement instructions lamy/stamy instead of lam/stam - all
  current users end up with better code because of this

Reviewed-by: Alexander Gordeev <agordeev@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/access-regs.h [new file with mode: 0644]
arch/s390/include/asm/switch_to.h
arch/s390/kernel/compat_signal.c
arch/s390/kernel/early.c
arch/s390/kernel/ptrace.c
arch/s390/kernel/signal.c
arch/s390/kernel/smp.c
arch/s390/kvm/gaccess.c
arch/s390/kvm/interrupt.c
arch/s390/kvm/kvm-s390.c