From mboxrd@z Thu Jan 1 00:00:00 1970 From: Jarkko Sakkinen Subject: Re: [PATCH v13 03/13] x86/cpufeatures: Add Intel-defined SGX leaf CPUID_12_EAX Date: Tue, 28 Aug 2018 10:23:55 +0300 Message-ID: <20180828072355.GB15508@linux.intel.com> References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-4-jarkko.sakkinen@linux.intel.com> <70dec13f-2182-e4d6-da71-a568d6e9354b@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: x86@kernel.org, platform-driver-x86@vger.kernel.org, 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 , Radim =?utf-8?B?S3LEjW3DocWZ?= , Peter Zijlstra , Borislav Petkov , Greg Kroah-Hartman , David Woodhouse , Alexei Starovoitov , Andi Kleen , Konrad Rzeszutek Wilk , Ricardo Neri , "Kirill A. Shutemov" , Andy Lutomirski Return-path: Content-Disposition: inline In-Reply-To: <70dec13f-2182-e4d6-da71-a568d6e9354b@intel.com> Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org On Mon, Aug 27, 2018 at 12:39:36PM -0700, Dave Hansen wrote: > 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 Yeah, my mistake probably when squashing fixups. /Jarkko