Re: [PATCH v4] x86: Remove unnecessary kmap() from sgx_ioc_enclave_init()

2021-02-07 Thread Jarkko Sakkinen
On Fri, Feb 05, 2021 at 09:00:30AM -0800, ira.we...@intel.com wrote: > From: Ira Weiny > > kmap is inefficient and we are trying to reduce the usage in the kernel. > There is no readily apparent reason why initp_page needs to be allocated > and kmap'ed() but sigstruct needs to be page aligned and

Re: [PATCH v4] x86: Remove unnecessary kmap() from sgx_ioc_enclave_init()

2021-02-05 Thread Dave Hansen
On 2/5/21 9:00 AM, ira.we...@intel.com wrote: > From: Ira Weiny > > kmap is inefficient and we are trying to reduce the usage in the kernel. > There is no readily apparent reason why initp_page needs to be allocated > and kmap'ed() but sigstruct needs to be page aligned and token > 512 byte align