Received: by 10.213.65.68 with SMTP id h4csp1727103imn; Mon, 19 Mar 2018 11:34:00 -0700 (PDT) X-Google-Smtp-Source: AG47ELvpxJpanHRNU4NyyuWJlyvJZJLEP1srGePL08J7+TDZrUbIKMgUbGNvFXczQeZv3fWXbrUC X-Received: by 10.101.97.26 with SMTP id z26mr9896745pgu.44.1521484440303; Mon, 19 Mar 2018 11:34:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521484440; cv=none; d=google.com; s=arc-20160816; b=QuyxBsawKYh28vfjRdBccanwkPcZ9UW4kyJxqbN0JOyVGjCOVoRKVtn6FXR+UzvJe8 u0K6RyCZFFuYzBS1Z8ZeBcSBO57knkfR5GtKTrjHgAMe14Tm/3wPVFGljyrfmpxdW6zc Lr64FborwSGfkxSxzpzDBlCqwjyxx3Xx1PY7eQes4QgSP5RtmXwu4/IY/fG+wdHP5yVA 2ZKnq6BvmLXaQDcEHHMVdaof+KVD2sC/7nFDuP03fe+gOQ9+NiOjv0ICunSrWPAGMhEh xZY6Vxl7StDIMZJ2W/GQV8u0O4kAIi4a8MGU5F0Lloy1gGl1/Su9jYEzNhQNN2Xwjhxw Vhgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=uL5XD2/Q42wfYqUV0pcHZBZegMEbauJj4fqHaC+RKeY=; b=Ey2S0tk4HAxGoX+xviWdQsxXsqgopv6GqsIILQcs9Zw6tzMjf5bNxX1PoK9fqNZ7oe NvKYHimT9ZLAm/PS2QyyHBnf+/0+Oz9+tL+F2VdqrD+6LB3nug8XRxDsUu4BSrrQUKtg Snk5SA5j0E3NVnRlHmRNRueXwUWr2xqvMKts9yhz6jYYWFY37PMXPuk6q9Ab4NE1d5aL Dn0DGucO/AtITTRVCHFKl/ScF+8rFAvYGr70VQf/qxKVwrdag/RtX322Mjxwjdcb1LiL tYS5fUkSUs3aaTtyK64t2+UOKrcFgqOaLCSP8UaMNljLC2WwD61RBMNus9h6t4Bsjtlz dKIA== 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 c2-v6si384547plo.116.2018.03.19.11.33.45; Mon, 19 Mar 2018 11:34:00 -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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1032065AbeCSSbM (ORCPT + 99 others); Mon, 19 Mar 2018 14:31:12 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:53430 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1032003AbeCSSbI (ORCPT ); Mon, 19 Mar 2018 14:31:08 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 9CEE11278; Mon, 19 Mar 2018 18:31:07 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, "Kirill A. Shutemov" , Dave Hansen , Kai Huang , Linus Torvalds , Peter Zijlstra , Thomas Gleixner , Tom Lendacky , linux-mm@kvack.org, Ingo Molnar Subject: [PATCH 4.15 01/52] x86/cpufeatures: Add Intel Total Memory Encryption cpufeature Date: Mon, 19 Mar 2018 19:07:59 +0100 Message-Id: <20180319180735.065262366@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180319180734.976730813@linuxfoundation.org> References: <20180319180734.976730813@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Kirill A. Shutemov commit 1da961d72ab0cfbe8b7c26cba731dc2bb6b9494b upstream. CPUID.0x7.0x0:ECX[13] indicates whether CPU supports Intel Total Memory Encryption. Signed-off-by: Kirill A. Shutemov Cc: Dave Hansen Cc: Kai Huang Cc: Linus Torvalds Cc: Peter Zijlstra Cc: Thomas Gleixner Cc: Tom Lendacky Cc: linux-mm@kvack.org Link: http://lkml.kernel.org/r/20180305162610.37510-2-kirill.shutemov@linux.intel.com Signed-off-by: Ingo Molnar Signed-off-by: Greg Kroah-Hartman --- arch/x86/include/asm/cpufeatures.h | 1 + 1 file changed, 1 insertion(+) --- a/arch/x86/include/asm/cpufeatures.h +++ b/arch/x86/include/asm/cpufeatures.h @@ -314,6 +314,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 */