On 12/04/21 06:21, Kai Huang wrote:
#define X86_KVM_FEATURE(w, f) ((w)*32 + (f))+/* Intel-defined SGX sub-features, CPUID level 0x12 (EAX). */+#define __X86_FEATURE_SGX1 X86_KVM_FEATURE(CPUID_12_EAX, 0) +#define __X86_FEATURE_SGX2 X86_KVM_FEATURE(CPUID_12_EAX, 1)
And these to KVM_X86_FEATURE and KVM_X86_FEATURE_SGX{1,2}. Paolo