Received: by 2002:ac0:98c7:0:0:0:0:0 with SMTP id g7-v6csp2691505imd; Fri, 2 Nov 2018 16:17:27 -0700 (PDT) X-Google-Smtp-Source: AJdET5eMQm43cXndfORJeG32S/UnXIMopsombkLAp23wg/jJWAitgfu/rlC/QwB9mZJ82W9TXewg X-Received: by 2002:a62:cc4:: with SMTP id 65-v6mr13492152pfm.127.1541200647903; Fri, 02 Nov 2018 16:17:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1541200647; cv=none; d=google.com; s=arc-20160816; b=F6md3HOu5PEY65l1T4LX7SzV9dlIzaJqDLpfdWpc2DbmDOW7wAENgcxHTJaVmn/HWP wjjsODGGT/H5Eacuq9tjanNL5ROqMIr89iu+yNjl37cyM7be+4TGwT0xyxF5fBO9rCTQ GiCBM4K7jimuGK5ZeEmX9mwgztlnyfQNuhE8X/n622wJz+mCCArJCjotgM2QHrsiPoXS xgJL0zhzzaDmK6n7JBWI4P6SaOgNlxge6v9AaCt50N4YpLjoQy/e/FOrfHzNvak0+CuL Bm4jCA2+Kf2XWJRan31GP9BSdR5Qyv/A0t6e7zmvpspw9++AXED7E2O/TbjZTY26QxPJ 4Udw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=WfZzQT8lNp4uE1jkbWhYH766wHHdKaUgB5AFBlhKlfc=; b=YIh30MRGH9r+ZQ7tjMEdQpVoqB7gOWNc4Do8mFn/CrKXPmbJKK0LaTQBCs+iCaA4Xi zXkVpaS4BIoFNvVwvjhbKahFXkKQtZTM5zTKNsvd0HBlA3ip/8BAGtNg/xRDwu+6QC92 GOWMMi+EqNLsm97EM7/EyfT7nre2zWAZLY2uX3V7POr7god0esU5hHQowtjtCel0otZ1 kmTpy1UYO1dH87E+1AMKb8ULeochhRFP/cf7oHzkL65MxFQdkTCbK12XOxi0YtBqp8Ze Ua0Qc997kyEP6esRbwILqK92WA0/Az3IxTTHfS9UbubHnGs62RQApu3uCbWSFY2TDGU1 V9XA== 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 p9-v6si34021656pls.378.2018.11.02.16.17.13; Fri, 02 Nov 2018 16:17:27 -0700 (PDT) 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 S1728698AbeKCIZZ (ORCPT + 99 others); Sat, 3 Nov 2018 04:25:25 -0400 Received: from mga18.intel.com ([134.134.136.126]:17496 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726705AbeKCIZZ (ORCPT ); Sat, 3 Nov 2018 04:25:25 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 02 Nov 2018 16:16:17 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,457,1534834800"; d="scan'208";a="270987969" Received: from btyborox-mobl.ger.corp.intel.com (HELO localhost) ([10.249.254.138]) by orsmga005.jf.intel.com with ESMTP; 02 Nov 2018 16:16:09 -0700 From: Jarkko Sakkinen To: x86@kernel.org, platform-driver-x86@vger.kernel.org, linux-sgx@vger.kernel.org Cc: dave.hansen@intel.com, sean.j.christopherson@intel.com, nhorman@redhat.com, npmccallum@redhat.com, serge.ayoun@intel.com, shay.katz-zamir@intel.com, haitao.huang@intel.com, mark.shanahan@intel.com, andriy.shevchenko@linux.intel.com, Kai Huang , Thomas Gleixner , Ingo Molnar , Borislav Petkov , "H. Peter Anvin" , Jarkko Sakkinen , Konrad Rzeszutek Wilk , David Woodhouse , linux-kernel@vger.kernel.org (open list:X86 ARCHITECTURE (32-BIT AND 64-BIT)) Subject: [PATCH v15 12/23] x86/cpufeatures: Add Intel-defined SGX_LC feature bit Date: Sat, 3 Nov 2018 01:11:11 +0200 Message-Id: <20181102231320.29164-13-jarkko.sakkinen@linux.intel.com> X-Mailer: git-send-email 2.19.1 In-Reply-To: <20181102231320.29164-1-jarkko.sakkinen@linux.intel.com> References: <20181102231320.29164-1-jarkko.sakkinen@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Kai Huang X86_FEATURE_SGX_LC reflects whether or not the CPU supports SGX Launch Control, i.e. enumerates the existence of IA32_FEATURE_CONTROL's SGX_LE_WR bit and the IA32_SGXLEPUBKEYHASH MSRs. Signed-off-by: Kai Huang Signed-off-by: Sean Christopherson --- 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 1b8dea9a06cb..1213e68f87e7 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -341,6 +341,7 @@ #define X86_FEATURE_LA57 (16*32+16) /* 5-level page tables */ #define X86_FEATURE_RDPID (16*32+22) /* RDPID instruction */ #define X86_FEATURE_CLDEMOTE (16*32+25) /* CLDEMOTE instruction */ +#define X86_FEATURE_SGX_LC (16*32+30) /* Software Guard Extensions Launch Control */ /* AMD-defined CPU features, CPUID level 0x80000007 (EBX), word 17 */ #define X86_FEATURE_OVERFLOW_RECOV (17*32+ 0) /* MCA overflow recovery support */ -- 2.19.1