Re: [PATCH v10 05/14] x86/sgx: Implement basic EPC misc cgroup functionality

From: Huang, Kai
Date: Thu Apr 04 2024 - 22:55:32 EST


On Thu, 2024-04-04 at 20:24 -0500, Haitao Huang wrote:
> > Again, IMHO having CONFIG_CGROUP_SGX_EPC here is ugly, because it 
> > doesn't even
> > match the try_charge() above, which doesn't have the 
> > CONFIG_CGROUP_SGX_EPC.
> >
> > If you add a wrapper in "epc_cgroup.h"
> >
> Agree. but in sgx.h so sgx_epc_page struct is not exposed in epc_cgroup.h.

I am fine with any place that suits.