Re: [PATCH v5 08/18] x86/sgx: Use a list to track to-be-reclaimed pages

2023-10-02 Thread Haitao Huang
On Thu, 28 Sep 2023 04:28:34 -0500, Huang, Kai wrote: On Fri, 2023-09-22 at 20:06 -0700, Haitao Huang wrote: @@ -314,18 +313,22 @@ static void sgx_reclaim_pages(void) if (kref_get_unless_zero(&encl_page->encl->refcount) != 0) { sgx_epc_page_set_state(epc

Re: [PATCH v5 08/18] x86/sgx: Use a list to track to-be-reclaimed pages

2023-09-28 Thread Huang, Kai
On Fri, 2023-09-22 at 20:06 -0700, Haitao Huang wrote: > @@ -314,18 +313,22 @@ static void sgx_reclaim_pages(void) >   >   if (kref_get_unless_zero(&encl_page->encl->refcount) != 0) { >   sgx_epc_page_set_state(epc_page, > SGX_EPC_PAGE_RECLAIM_IN_PROGRESS); > -

[PATCH v5 08/18] x86/sgx: Use a list to track to-be-reclaimed pages

2023-09-22 Thread Haitao Huang
From: Sean Christopherson Change sgx_reclaim_pages() to use a list rather than an array for storing the epc_pages which will be reclaimed. This change is needed to transition to the LRU implementation for EPC cgroup support. When the EPC cgroup is implemented, the reclaiming process will do a pr