Re: [PATCH v4 3/5] x86/sgx: Optimize the free_cnt count in sgx_epc_section

2021-02-10 Thread Tianjia Zhang
On 2/3/21 5:54 AM, Jarkko Sakkinen wrote: On Mon, Feb 01, 2021 at 09:26:51PM +0800, Tianjia Zhang wrote: 'section->free_cnt' represents the free page in sgx_epc_section, which is assigned once after initialization. In fact, just after the initialization is completed, the pages are in the init

Re: [PATCH v4 3/5] x86/sgx: Optimize the free_cnt count in sgx_epc_section

2021-02-02 Thread Jarkko Sakkinen
On Mon, Feb 01, 2021 at 09:26:51PM +0800, Tianjia Zhang wrote: > 'section->free_cnt' represents the free page in sgx_epc_section, > which is assigned once after initialization. In fact, just after the > initialization is completed, the pages are in the init_laundry_list > list and cannot be allocat

[PATCH v4 3/5] x86/sgx: Optimize the free_cnt count in sgx_epc_section

2021-02-01 Thread Tianjia Zhang
'section->free_cnt' represents the free page in sgx_epc_section, which is assigned once after initialization. In fact, just after the initialization is completed, the pages are in the init_laundry_list list and cannot be allocated. This needs to be recovered by EREMOVE of function sgx_sanitize_sect