RE: [PATCH] x86/sgx: Charge proper mem_cgroup for usage due to EPC reclamation by cgroups
Tested by: Chris Yan
[PATCH] x86/sgx: Charge proper mem_cgroup for usage due to EPC reclamation by cgroups
Enclave Page Cache(EPC) memory can be swapped out to regular system memory, and the consumed memory should be charged to a proper mem_cgroup. Currently the selection of mem_cgroup to charge is done in sgx_encl_get_mem_cgroup(). But it only considers two contexts in which the swapping can be done: n