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

2021-03-26 Thread Jarkko Sakkinen
On Wed, Mar 24, 2021 at 11:22:46AM -0700, ira.we...@intel.com wrote: > From: Ira Weiny > > kmap is inefficient and is being replaced by kmap_local_page(), if > possible. Nit: just saying that something is inefficient is not enough. Always should have something to back it up. > That said, there

[PATCH] x86/sgx: Remove unnecessary kmap() from sgx_ioc_enclave_init()

2021-03-24 Thread ira . weiny
From: Ira Weiny kmap is inefficient and is being replaced by kmap_local_page(), if possible. That said, there is no readily apparent reason why initp_page needs to be allocated and kmap'ed() except that 'sigstruct' needs to be page aligned and 'token' 512 byte aligned. Rather than change this