Re: [PATCH v3 2/5] x86/sgx: Optimize the locking range in sgx_sanitize_section()

2021-01-30 Thread Jarkko Sakkinen
On Sun, Jan 24, 2021 at 02:29:04PM +0800, Tianjia Zhang wrote: > The spin lock of sgx_epc_section only locks the page_list. The > EREMOVE operation and init_laundry_list is not necessary in the > protection range of the spin lock. This patch reduces the lock > range of the spin lock in the function

[PATCH v3 2/5] x86/sgx: Optimize the locking range in sgx_sanitize_section()

2021-01-23 Thread Tianjia Zhang
The spin lock of sgx_epc_section only locks the page_list. The EREMOVE operation and init_laundry_list is not necessary in the protection range of the spin lock. This patch reduces the lock range of the spin lock in the function sgx_sanitize_section() and only protects the operation of the page_lis