Subject: Re: [PATCH v13 05/13] x86/msr: Add SGX definitions to msr-index.h To: Jarkko Sakkinen , , References: <20180827185507.17087-1-jarkko.sakkinen@linux.intel.com> <20180827185507.17087-6-jarkko.sakkinen@linux.intel.com> CC: , , , , Haim Cohen , Thomas Gleixner , Ingo Molnar , "H. Peter Anvin" , Borislav Petkov , Konrad Rzeszutek Wilk , Tom Lendacky , Paolo Bonzini , "David Woodhouse" , Greg Kroah-Hartman , Janakarajan Natarajan , Matt Turner , "Andy Lutomirski" , "open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)" From: Dave Hansen Message-ID: Date: Mon, 27 Aug 2018 12:42:32 -0700 In-Reply-To: <20180827185507.17087-6-jarkko.sakkinen@linux.intel.com> Content-Type: text/plain; charset="utf-8" Sender: Return-Path: platform-driver-x86-owner@vger.kernel.org MIME-Version: 1.0 List-ID: On 08/27/2018 11:53 AM, Jarkko Sakkinen wrote: > @@ -866,10 +867,9 @@ void get_cpu_cap(struct cpuinfo_x86 *c) > } > } > > - /* Intel SGX features: level 0x00000012 */ > - if (c->cpuid_level >= 0x00000012) { > - cpuid(0x00000012, &eax, &ebx, &ecx, &edx); > - > + /* Intel SGX features */ > + if (c->cpuid_level >= SGX_CPUID) { > + cpuid(SGX_CPUID, &eax, &ebx, &ecx, &edx); > c->x86_capability[CPUID_12_EAX] = eax; > } This hunk has no apparent connection to the changelog.