Re: [PATCH v17 03/23] x86/cpufeatures: Add SGX sub-features (as Linux-defined bits)

From: Jarkko Sakkinen
Date: Sun Nov 18 2018 - 03:36:52 EST


On Fri, Nov 16, 2018 at 03:31:28PM -0800, Dave Hansen wrote:
> On 11/15/18 5:01 PM, Jarkko Sakkinen wrote:
> > +#define X86_FEATURE_SGX1 ( 8*32+ 0) /* SGX1 leaf functions */
> > +#define X86_FEATURE_SGX2 ( 8*32+ 1) /* SGX2 leaf functions */
>
> Is there a reason these are not (all) tied to CONFIG_INTEL_SGX via:
>
> arch/x86/include/asm/disabled-features.h
>
> ?

No any particular reason.

/Jarkko