Received: by 2002:ac0:aed5:0:0:0:0:0 with SMTP id t21csp909968imb; Fri, 1 Mar 2019 18:54:52 -0800 (PST) X-Google-Smtp-Source: APXvYqyk8yHPVNbGm6X68D9/NZ+W/uS/AmIVmVb91ePWxXIVrFDIjNx9G41iBvx7wNI4C3JeTTlK X-Received: by 2002:a17:902:8692:: with SMTP id g18mr8671282plo.149.1551495292494; Fri, 01 Mar 2019 18:54:52 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1551495292; cv=none; d=google.com; s=arc-20160816; b=Goiz1QV8+l5WsrpwmZiURiL39djge0DQpmwVobGxv+YnyvPnXMBB5g+aCktRJrALph PeyG0PJ/nGi7YMTI7GjqTt+Sq4mjE8CNV9A+OjArYfesljPZiEAWt5R403tiigw+IYP+ eZSop5GN1nMhIHWtyOACPjzZ2MEsE6jhHhW6Rltrlydbn0EL8b/Kyh7ugGDgBHrkxc9R huGBG3GCy5sZ1weus7r0lPYUyBI7TvAQ8uPwdaER9f+yfwkxpxN0di/mdkccpGedpAUK I9O6iu74Y3kyo3YuJzFqKmtuDHiLimYuqon6QwyJEy1i0pEYTe8VUbuW8lqcj+ADchVM uwXA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from; bh=wlNpcGY7sKb+/oAENF7MFQGpXqv+57qR1jeNpkhOW84=; b=KFfzGE0z9DfahgzMYlrmtiyC/ykTEf2OJgKwFoYjoypI03PeaRBD2iUGAmftaIPi3S JopthbdZUkg8QZsCDc3G7SNu1gzrc6nhMrOnNc2k2rgvWHN/pTiZgRKlb/FXM6Id2ZYg l8FXR0M/Dye2GvMo5hy6ySr5q68mBJpt7/54UktMp6YqocdQTLS3FWz0UxiLqNpTSsjU XKAWH9Xrs7iqZR8DxF4L3xLF1ky6EWiyx6nel7xeyv9UHpmXv+h/czWJdTVtWk+l4APg O+ksq7Xl9tAulnrFTckDMQDPLgLCx1oc0m0d2gI59Jcp69RaKCCodD3G7dthQhsrH+ve /Q5g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j22si23084191pgg.463.2019.03.01.18.54.37; Fri, 01 Mar 2019 18:54:52 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728212AbfCBCxf (ORCPT + 99 others); Fri, 1 Mar 2019 21:53:35 -0500 Received: from mga09.intel.com ([134.134.136.24]:61571 "EHLO mga09.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727825AbfCBCwa (ORCPT ); Fri, 1 Mar 2019 21:52:30 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 01 Mar 2019 18:52:28 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.58,430,1544515200"; d="scan'208";a="148572601" Received: from romley-ivt3.sc.intel.com ([172.25.110.60]) by fmsmga004.fm.intel.com with ESMTP; 01 Mar 2019 18:52:28 -0800 From: Fenghua Yu To: "Thomas Gleixner" , "Ingo Molnar" , "Borislav Petkov" , "H Peter Anvin" , "Paolo Bonzini" , "Dave Hansen" , "Ashok Raj" , "Peter Zijlstra" , "Ravi V Shankar" , "Xiaoyao Li " Cc: "linux-kernel" , "x86" , kvm@vger.kernel.org, Fenghua Yu Subject: [PATCH v4 05/17] x86/cpufeatures: Enumerate IA32_CORE_CAPABILITIES MSR Date: Fri, 1 Mar 2019 18:44:59 -0800 Message-Id: <1551494711-213533-6-git-send-email-fenghua.yu@intel.com> X-Mailer: git-send-email 2.5.0 In-Reply-To: <1551494711-213533-1-git-send-email-fenghua.yu@intel.com> References: <1551494711-213533-1-git-send-email-fenghua.yu@intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org MSR register IA32_CORE_CAPABILITIES (0xCF) contains bits that enumerate some model specific features. The MSR 0xCF itself is enumerated by CPUID.(EAX=0x7,ECX=0):EDX[30]. When this bit is 1, the MSR 0xCF exists. Detailed information for the CPUID bit and the MSR can be found in the latest Intel Architecture Instruction Set Extensions and Future Features Programming Reference. Signed-off-by: Fenghua Yu --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) diff --git a/arch/x86/include/asm/cpufeatures.h b/arch/x86/include/asm/cpufeatures.h index 6d6122524711..350eeccd0ce9 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -349,6 +349,7 @@ #define X86_FEATURE_INTEL_STIBP (18*32+27) /* "" Single Thread Indirect Branch Predictors */ #define X86_FEATURE_FLUSH_L1D (18*32+28) /* Flush L1D cache */ #define X86_FEATURE_ARCH_CAPABILITIES (18*32+29) /* IA32_ARCH_CAPABILITIES MSR (Intel) */ +#define X86_FEATURE_CORE_CAPABILITY (18*32+30) /* IA32_CORE_CAPABILITY MSR */ #define X86_FEATURE_SPEC_CTRL_SSBD (18*32+31) /* "" Speculative Store Bypass Disable */ /* -- 2.7.4