On Wed, Jan 06, 2021 at 02:55:21PM +1300, Kai Huang wrote: > +/* Intel-defined SGX features, CPUID level 0x00000012:0 (EAX), word 19 */ > +#define X86_FEATURE_SGX1 (19*32+ 0) /* SGX1 leaf functions */ > +#define X86_FEATURE_SGX2 (19*32+ 1) /* SGX2 leaf functions */ Is anything else from that leaf going to be added later? Bit 5 is "supports ENCLV instruction leaves", 6 is ENCLS insn leaves... are those going to be used in the kernel too eventually? Rest of them is reserved in the SDM which probably means internal only for now. -- Regards/Gruss, Boris. https://people.kernel.org/tglx/notes-about-netiquette