Re: [PATCH v39 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-10-23 Thread Jarkko Sakkinen
On Mon, Oct 19, 2020 at 06:40:34AM -0700, Dave Hansen wrote: > On 10/19/20 1:45 AM, Jarkko Sakkinen wrote: > > On Sat, Oct 03, 2020 at 07:50:43AM +0300, Jarkko Sakkinen wrote: > >> +config INTEL_SGX > > Since the directory for this was renamed some iterations ago from > > arch/x86/kernel/cpu/sgx

Re: [PATCH v39 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-10-23 Thread Jarkko Sakkinen
On Mon, Oct 19, 2020 at 02:39:34PM +0200, Borislav Petkov wrote: > On Mon, Oct 19, 2020 at 11:45:58AM +0300, Jarkko Sakkinen wrote: > > On Sat, Oct 03, 2020 at 07:50:43AM +0300, Jarkko Sakkinen wrote: > > > +config INTEL_SGX > > > > Since the directory for this was renamed some iterations ago

Re: [PATCH v39 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-10-19 Thread Dave Hansen
On 10/19/20 1:45 AM, Jarkko Sakkinen wrote: > On Sat, Oct 03, 2020 at 07:50:43AM +0300, Jarkko Sakkinen wrote: >> +config INTEL_SGX > Since the directory for this was renamed some iterations ago from > arch/x86/kernel/cpu/sgx to intel_sgx given the feedback from Boris, > I'm wondering should this

Re: [PATCH v39 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-10-19 Thread Borislav Petkov
On Mon, Oct 19, 2020 at 11:45:58AM +0300, Jarkko Sakkinen wrote: > On Sat, Oct 03, 2020 at 07:50:43AM +0300, Jarkko Sakkinen wrote: > > +config INTEL_SGX > > Since the directory for this was renamed some iterations ago from > arch/x86/kernel/cpu/sgx to intel_sgx given the feedback from Boris, >

Re: [PATCH v39 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-10-19 Thread Jarkko Sakkinen
On Sat, Oct 03, 2020 at 07:50:43AM +0300, Jarkko Sakkinen wrote: > +config INTEL_SGX Since the directory for this was renamed some iterations ago from arch/x86/kernel/cpu/sgx to intel_sgx given the feedback from Boris, I'm wondering should this also be renamed as X86_SGX? /Jarkko

[PATCH v39 08/24] x86/sgx: Initialize metadata for Enclave Page Cache (EPC) sections

2020-10-02 Thread Jarkko Sakkinen
From: Sean Christopherson Enumerate Enclave Page Cache (EPC) sections via CPUID and add the data structures necessary to track EPC pages so that they can be easily borrowed for different uses. Embed section index to the first eight bits of the EPC page descriptor. Existing client hardware