Re: [PATCH v10 08/14] x86/sgx: Add basic EPC reclamation flow for cgroup
From: Jarkko Sakkinen
Date: Sat Apr 13 2024 - 16:56:54 EST
On Fri Apr 5, 2024 at 6:07 AM EEST, Huang, Kai wrote:
> On Thu, 2024-04-04 at 12:05 -0500, Haitao Huang wrote:
> > > > -static inline int sgx_cgroup_try_charge(struct sgx_cgroup *sgx_cg)
> > > > +static inline int sgx_cgroup_try_charge(struct sgx_cgroup *sgx_cg,
> > > > enum sgx_reclaim r)
> > >
> > > Is the @r here intentional for shorter typing?
> > >
> >
> > yes :-)
> > Will speel out to make it consistent if that's the concern.
>
> I kinda prefer the full name to match the CONFIG_CGROUP_SGX_EPC on case. You
> can put the 'enum sgx_reclaim reclaim' parameter into the new line if needed:
Why don't cgroups for SGX get always enabled when SGX and
cgroups support are enabled?
BR, Jarkko