powerpc/dexcr: Track the DEXCR per-process
authorBenjamin Gray <bgray@linux.ibm.com>
Wed, 17 Apr 2024 11:23:18 +0000 (21:23 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Fri, 3 May 2024 10:46:51 +0000 (20:46 +1000)
commit75171f06c4507c3b6b5a69d793879fb20d108bb1
tree82a5db6c1f962cb180135e9cec442e812ffbe028
parentd7228a58d9438d6f219dc7f33eab0d1980b3bd2f
powerpc/dexcr: Track the DEXCR per-process

Add capability to make the DEXCR act as a per-process SPR.

We do not yet have an interface for changing the values per task. We
also expect the kernel to use a single DEXCR value across all tasks
while in privileged state, so there is no need to synchronize after
changing it (the userspace aspects will synchronize upon returning to
userspace).

Signed-off-by: Benjamin Gray <bgray@linux.ibm.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/20240417112325.728010-3-bgray@linux.ibm.com
arch/powerpc/include/asm/processor.h
arch/powerpc/kernel/process.c
arch/powerpc/kernel/ptrace/ptrace-view.c