Re: [PATCH v4 2/3] x86/sgx: Replace section local dirty page lists with a global list

2021-03-15 Thread Dave Hansen
On 3/15/21 12:14 PM, Jarkko Sakkinen wrote: > On Mon, Mar 15, 2021 at 09:03:21AM -0700, Dave Hansen wrote: >> On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: >>> Reset initialized EPC pages in sgx_dirty_page_list to uninitialized state, >>> and free them using sgx_free_epc_page(). Do two passes, as for

Re: [PATCH v4 2/3] x86/sgx: Replace section local dirty page lists with a global list

2021-03-15 Thread Jarkko Sakkinen
On Mon, Mar 15, 2021 at 09:03:21AM -0700, Dave Hansen wrote: > On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: > > Reset initialized EPC pages in sgx_dirty_page_list to uninitialized state, > > and free them using sgx_free_epc_page(). Do two passes, as for SECS pages > > the first round can fail, if all

Re: [PATCH v4 2/3] x86/sgx: Replace section local dirty page lists with a global list

2021-03-15 Thread Dave Hansen
On 3/13/21 8:01 AM, Jarkko Sakkinen wrote: > Reset initialized EPC pages in sgx_dirty_page_list to uninitialized state, > and free them using sgx_free_epc_page(). Do two passes, as for SECS pages > the first round can fail, if all child pages have not yet been removed. > The driver puts all pages o

[PATCH v4 2/3] x86/sgx: Replace section local dirty page lists with a global list

2021-03-13 Thread Jarkko Sakkinen
Reset initialized EPC pages in sgx_dirty_page_list to uninitialized state, and free them using sgx_free_epc_page(). Do two passes, as for SECS pages the first round can fail, if all child pages have not yet been removed. The driver puts all pages on startup first to sgx_dirty_page_list, as the init