Received: by 10.223.185.116 with SMTP id b49csp2780888wrg; Mon, 5 Mar 2018 08:34:39 -0800 (PST) X-Google-Smtp-Source: AG47ELsX2kkBBGbf6MztR8iY7TB2k/lmMipuZ6iLUXH8a2cdisL4ROXrYwZ7Fgz2hjCvUJV11kap X-Received: by 2002:a17:902:ac1:: with SMTP id 59-v6mr13634772plp.228.1520267679630; Mon, 05 Mar 2018 08:34:39 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520267679; cv=none; d=google.com; s=arc-20160816; b=gnXyvHtpjT4l3ZY80CYAQL+5/rkAdYaHsY0gZ1qcx11PoT7qfzuQP+oiMWwOcfdFN9 0Tb4c1qS+hyPvfmsDayiPld4oFIXeIxdb5XzivAvxO9Glz+HQY3mpv3NH1Z5WZKv03Wm maL5XoBeR0nKPcAciRrWTxqtXkZxa4avApi2AbBaghmy9u+BN1Mm1Y/KT7fORprzlXsu 1zUwS98O835pKzbP4fn6JCJB/ERg+DozXDI9L1MlkK5CofbY6kIhpNYNGsU/GXnXLxif 37S19UEhck+i4asSuZRF7pg17A/NFuCDB75baijLlGmBy7HbsZwoHIrmGgcMDLwwO91n s40w== 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:arc-authentication-results; bh=qtc+ztlwdNX5BIGbbEAu82VjsgSESsamruI0XrAWz0g=; b=C9Q51bYKKa9qsv27aB2Py3qi1DVgfXp2CaFrXXqdTXzs+TjXKlocB8jKZPySxte2Ne 2ABhfhfgWImj8l6PiPvJfRZzmEsFnzu4m92ARzru84tClmVfiTdzqls3A0+ZSCYvWLSU h3jawNb7NhJCMsMsFg8BQKIcL0Kh7e3gfVm0VfV+AxdFbK9f3bbJnMHDn+Bge/zjI0ZK pqXWauHDRByorRw6J6bmzilE2g9A0Nf1BKAhRdDZ3Eho9RvNfWCdWXVHeZNmz1+/SsvR XRjOH6cHxT2WUn8S50cX/c+/DSOn4AiIwIbO9FrbB6gAcdcOdfgcEPCG1rI+YI2T2sgL EbJg== 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q3si8548922pgp.632.2018.03.05.08.34.24; Mon, 05 Mar 2018 08:34:39 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752996AbeCEQcY (ORCPT + 99 others); Mon, 5 Mar 2018 11:32:24 -0500 Received: from mga04.intel.com ([192.55.52.120]:44459 "EHLO mga04.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751723AbeCEQ0Y (ORCPT ); Mon, 5 Mar 2018 11:26:24 -0500 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga007.jf.intel.com ([10.7.209.58]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Mar 2018 08:26:23 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.47,427,1515484800"; d="scan'208";a="22183723" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga007.jf.intel.com with ESMTP; 05 Mar 2018 08:26:20 -0800 Received: by black.fi.intel.com (Postfix, from userid 1000) id D623BD2; Mon, 5 Mar 2018 18:26:19 +0200 (EET) From: "Kirill A. Shutemov" To: Ingo Molnar , x86@kernel.org, Thomas Gleixner , "H. Peter Anvin" , Tom Lendacky Cc: Dave Hansen , Kai Huang , linux-kernel@vger.kernel.org, linux-mm@kvack.org, "Kirill A. Shutemov" Subject: [RFC, PATCH 01/22] x86/cpufeatures: Add Intel Total Memory Encryption cpufeature Date: Mon, 5 Mar 2018 19:25:49 +0300 Message-Id: <20180305162610.37510-2-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180305162610.37510-1-kirill.shutemov@linux.intel.com> References: <20180305162610.37510-1-kirill.shutemov@linux.intel.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org CPUID.0x7.0x0:ECX[13] indicates whether CPU supports Intel Total Memory Encryption. Signed-off-by: Kirill A. Shutemov --- 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 3508318b5d23..d5f42a303e74 100644 --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -317,6 +317,7 @@ #define X86_FEATURE_VPCLMULQDQ (16*32+10) /* Carry-Less Multiplication Double Quadword */ #define X86_FEATURE_AVX512_VNNI (16*32+11) /* Vector Neural Network Instructions */ #define X86_FEATURE_AVX512_BITALG (16*32+12) /* Support for VPOPCNT[B,W] and VPSHUF-BITQMB instructions */ +#define X86_FEATURE_TME (16*32+13) /* Intel Total Memory Encryption */ #define X86_FEATURE_AVX512_VPOPCNTDQ (16*32+14) /* POPCNT for vectors of DW/QW */ #define X86_FEATURE_LA57 (16*32+16) /* 5-level page tables */ #define X86_FEATURE_RDPID (16*32+22) /* RDPID instruction */ -- 2.16.1