Re: [PATCH RFC V3 2/9] x86/fpu: Refactor arch_set_user_pkey_access() for PKS support

From
Peter Zijlstra <peterz@infradead.org>
Date
2020-10-19 09:35:25
Also in
linux-doc, linux-fsdevel, linux-kselftest, lkml, nvdimm
Reply to
Ira Weiny, 2020-10-17
On Fri, Oct 16, 2020 at 08:32:03PM -0700, Ira Weiny wrote:
On Fri, Oct 16, 2020 at 12:57:43PM +0200, Peter Zijlstra wrote:
quoted
On Fri, Oct 09, 2020 at 12:42:51PM -0700, ira.weiny@intel.com wrote:
quoted
From: Fenghua Yu <redacted>

Define a helper, update_pkey_val(), which will be used to support both
Protection Key User (PKU) and the new Protection Key for Supervisor
(PKS) in subsequent patches.

Co-developed-by: Ira Weiny <redacted>
Signed-off-by: Ira Weiny <redacted>
Signed-off-by: Fenghua Yu <redacted>
---
 arch/x86/include/asm/pkeys.h |  2 ++
 arch/x86/kernel/fpu/xstate.c | 22 ++++------------------
 arch/x86/mm/pkeys.c          | 21 +++++++++++++++++++++
 3 files changed, 27 insertions(+), 18 deletions(-)
This is not from Fenghua.

  https://lkml.kernel.org/r/20200717085442.GX10769@hirez.programming.kicks-ass.net (local)

This is your patch based on the code I wrote.
Ok, I apologize.  Yes the code below was all yours.

Is it ok to add?

Co-developed-by: Peter Zijlstra <peterz@infradead.org>
Signed-off-by: Peter Zijlstra <peterz@infradead.org>
Sure, thanks!
Thread (47 messages) 47 messages, 4 authors, last reply 2020-10-20
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help