From: Dave Hansen Subject: Re: [PATCH v13 03/13] x86/cpufeatures: Add Intel-defined SGX leaf CPUID_12_EAX Date: Mon, 27 Aug 2018 12:39:36 -0700 Message-ID: <70dec13f-2182-e4d6-da71-a568d6e9354b@intel.com> References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-4-jarkko.sakkinen@linux.intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit Cc: sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, linux-sgx@vger.kernel.org, Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Paolo Bonzini , =?UTF-8?B?UmFkaW0gS3LEjW3DocWZ?= , Peter Zijlstra , Borislav Petkov , Greg Kroah-Hartman , David Woodhouse , Alexei Starovoitov , Andi Kleen , Konrad Rzeszutek Wilk , Ricardo Neri , "Kirill A. Shutemov" , Andy Lutomirski , "open list:X86 ARCHITECTURE (32-BIT AND 64- To: Jarkko Sakkinen , x86@kernel.org, platform-driver-x86@vger.kernel.org Return-path: In-Reply-To: <20180827185507.17087-4-jarkko.sakkinen@linux.intel.com> Content-Language: en-US Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > + /* Intel SGX features: level 0x00000012 */ > + if (c->cpuid_level >= 0x00000012) { > + cpuid(0x00000012, &eax, &ebx, &ecx, &edx); > + > + c->x86_capability[CPUID_12_EAX] = eax; > + } I've given this specific bit of feedback at least once in the past. These patches are not ordered properly. You introduce this in the next patch: +#define SGX_CPUID 0x12