| From | Dan Williams <> | Date | Fri, 4 Feb 2022 09:41:59 -0800 | Subject | Re: [PATCH V8 37/44] memremap_pages: Set PKS PKey in PTEs if PGMAP_PROTECTIONS is requested |
| |
On Thu, Jan 27, 2022 at 9:55 AM <ira.weiny@intel.com> wrote: > > From: Ira Weiny <ira.weiny@intel.com> > > When the user requests protections the dev_pagemap mappings need to have > a PKEY set. > > Define devmap_protection_adjust_pgprot() to add the PKey to the page > protections. Call it when PGMAP_PROTECTIONS is requested when remapping > pages. > > Signed-off-by: Ira Weiny <ira.weiny@intel.com> > ---
Does this patch have a reason to exist independent of the patch that introduced devmap_protection_enable()?
Otherwise looks ok.
|