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 ?