Re: [RFC PATCH v4 02/26] x86/cpufeatures: Add SGX1 and SGX2 sub-features

Dave Hansen
2021-02-09T16:13:05Z

On 2/8/21 2:54 AM, Kai Huang wrote:
> Add SGX1 and SGX2 feature flags, via CPUID.0x12.0x0.EAX, as scattered
> features, since adding a new leaf for only two bits would be wasteful.
> As part of virtualizing SGX, KVM will expose the SGX CPUID leafs to its
> guest, and to do so correctly needs to query hardware and kernel support
> for SGX1 and SGX2.

Looks good now.

Acked-by: Dave Hansen <dave.hansen@intel.com>