lkml.org 
[lkml]   [2022]   [Jan]   [28]   [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 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.

\
 
 \ /
  Last update: 2022-01-29 00:05    [W:0.586 / U:1.224 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site