Re: [PATCH RFC V3 9/9] x86/pks: Add PKS test code

2020-10-14 Thread Ira Weiny
On Tue, Oct 13, 2020 at 12:02:07PM -0700, Dave Hansen wrote: > On 10/9/20 12:42 PM, ira.we...@intel.com wrote: > > #ifdef CONFIG_X86_32 > > /* > > * We can fault-in kernel-space virtual memory on-demand. The > > diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h > > index

Re: [PATCH RFC V3 9/9] x86/pks: Add PKS test code

2020-10-13 Thread Dave Hansen
On 10/9/20 12:42 PM, ira.we...@intel.com wrote: > #ifdef CONFIG_X86_32 > /* >* We can fault-in kernel-space virtual memory on-demand. The > diff --git a/include/linux/pkeys.h b/include/linux/pkeys.h > index cc3510cde64e..f9552bd9341f 100644 > --- a/include/linux/pkeys.h > +++

[PATCH RFC V3 9/9] x86/pks: Add PKS test code

2020-10-09 Thread ira . weiny
From: Ira Weiny The core PKS functionality provides an interface for kernel users to reserve keys to their domains set up the page tables with those keys and control access to those domains when needed. Define test code which exercises the core functionality of PKS via a debugfs entry. Basic