Re: [PATCH v7 07/15] x86/sgx: Expose sgx_reclaim_pages() for cgroup

2024-01-22 Thread Jarkko Sakkinen
On Mon Jan 22, 2024 at 7:20 PM EET, Haitao Huang wrote: > From: Sean Christopherson > > Each EPC cgroup will have an LRU structure to track reclaimable EPC pages. > When a cgroup usage reaches its limit, the cgroup needs to reclaim pages > from its LRU or LRUs of its descendants to make room for a

[PATCH v7 07/15] x86/sgx: Expose sgx_reclaim_pages() for cgroup

2024-01-22 Thread Haitao Huang
From: Sean Christopherson Each EPC cgroup will have an LRU structure to track reclaimable EPC pages. When a cgroup usage reaches its limit, the cgroup needs to reclaim pages from its LRU or LRUs of its descendants to make room for any new allocations. To prepare for reclamation per cgroup, expos