Re: [PATCH v15 12/14] x86/sgx: Turn on per-cgroup EPC reclamation

2024-06-20 Thread Huang, Kai
On Thu, 2024-06-20 at 10:06 -0500, Haitao Huang wrote: > Hi Kai > > On Thu, 20 Jun 2024 05:30:16 -0500, Huang, Kai wrote: > > > > > On 18/06/2024 12:53 am, Huang, Haitao wrote: > > > From: Kristen Carlson Accardi > > > > > > Previous patches have implemented all infrastructure needed for > >

Re: [PATCH v15 12/14] x86/sgx: Turn on per-cgroup EPC reclamation

2024-06-20 Thread Haitao Huang
Hi Kai On Thu, 20 Jun 2024 05:30:16 -0500, Huang, Kai wrote: On 18/06/2024 12:53 am, Huang, Haitao wrote: From: Kristen Carlson Accardi Previous patches have implemented all infrastructure needed for per-cgroup EPC page tracking and reclaiming. But all reclaimable EPC pages are still track

Re: [PATCH v15 12/14] x86/sgx: Turn on per-cgroup EPC reclamation

2024-06-20 Thread Huang, Kai
On 18/06/2024 12:53 am, Huang, Haitao wrote: > From: Kristen Carlson Accardi > > Previous patches have implemented all infrastructure needed for > per-cgroup EPC page tracking and reclaiming. But all reclaimable EPC > pages are still tracked in the global LRU as sgx_epc_page_lru() always > retur

[PATCH v15 12/14] x86/sgx: Turn on per-cgroup EPC reclamation

2024-06-17 Thread Huang, Haitao
From: Kristen Carlson Accardi Previous patches have implemented all infrastructure needed for per-cgroup EPC page tracking and reclaiming. But all reclaimable EPC pages are still tracked in the global LRU as sgx_epc_page_lru() always returns reference to the global LRU. Change sgx_epc_page_lru()