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

2021-02-10 Thread Tianjia Zhang
On 2/3/21 6:00 AM, Jarkko Sakkinen wrote: On Mon, Feb 01, 2021 at 09:26:50PM +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

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

2021-02-02 Thread Jarkko Sakkinen
On Mon, Feb 01, 2021 at 09:26:50PM +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

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

2021-02-01 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