lkml.org 
[lkml]   [2022]   [Feb]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH V8 07/44] x86/pkeys: Add PKS CPU feature bit
On Fri, Jan 28, 2022 at 03:05:36PM -0800, Dave Hansen wrote:
> On 1/27/22 09:54, ira.weiny@intel.com wrote:
> > From: Ira Weiny <ira.weiny@intel.com>
> >
> > Protection Keys for Supervisor pages (PKS) enables fast, hardware thread
> > specific, manipulation of permission restrictions on supervisor page
>
> Nit: should be "hardware-thread-specific".
>
> > mappings. It uses the same mechanism of Protection Keys as those on
> > User mappings but applies that mechanism to supervisor mappings using a
> > supervisor specific MSR.
>
> "supervisor-specific"
>
> Memory Protection Keys (pkeys) provides a mechanism for
> enforcing page-based protections, but without requiring
> modification of the page tables when an application changes
> protection domains.
>
> The kernel currently supports the pkeys for userspace (PKU)
> architecture. That architecture has been extended to
> additionally support supervisor mappings. The supervisor
> support is referred to as PKS.
>
> I probably wouldn't mention the MSR unless you want to say:
>
> The main difference between PKU and PKS is that PKS does not
> introduce any new instructions to write to its register. The
> register is exposed as a normal MSR and is accessed with the
> normal MSR instructions.
>
>
> > The CPU indicates support for PKS in bit 31 of the ECX register after a
> > cpuid instruction.
>
> I'd just remove this sentence. We don't need to rehash each tiny morsel
> of the architecture in a commit message.

All done. Thanks for the verbiage.
Ira

\
 
 \ /
  Last update: 2022-02-04 20:22    [W:0.476 / U:0.840 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site