Re: [PATCH v17 07/23] x86/mm: x86/sgx: Add new 'PF_SGX' page fault error code bit

2018-11-18 Thread Jarkko Sakkinen
On Fri, Nov 16, 2018 at 03:33:35PM -0800, Dave Hansen wrote: > On 11/15/18 5:01 PM, Jarkko Sakkinen wrote: > > The SGX bit is set in the #PF error code if and only if the fault is > > detected by the Enclave Page Cache Map (EPCM), a hardware-managed > > table that enforces the paging permissions de

Re: [PATCH v17 07/23] x86/mm: x86/sgx: Add new 'PF_SGX' page fault error code bit

2018-11-16 Thread Dave Hansen
On 11/15/18 5:01 PM, Jarkko Sakkinen wrote: > The SGX bit is set in the #PF error code if and only if the fault is > detected by the Enclave Page Cache Map (EPCM), a hardware-managed > table that enforces the paging permissions defined by the enclave, > e.g. to prevent the kernel from changing the

[PATCH v17 07/23] x86/mm: x86/sgx: Add new 'PF_SGX' page fault error code bit

2018-11-15 Thread Jarkko Sakkinen
From: Sean Christopherson The SGX bit is set in the #PF error code if and only if the fault is detected by the Enclave Page Cache Map (EPCM), a hardware-managed table that enforces the paging permissions defined by the enclave, e.g. to prevent the kernel from changing the permissions of an enclav