Received: by 10.213.65.68 with SMTP id h4csp675564imn; Wed, 28 Mar 2018 10:39:15 -0700 (PDT) X-Google-Smtp-Source: AIpwx4/+/wk0O7rCQg6FEvfnNOTDdbcQrhXWvcoGDO66NMq84FryNmTouVfveuRgolgG3r2nNDun X-Received: by 10.101.92.138 with SMTP id a10mr3207338pgt.64.1522258755453; Wed, 28 Mar 2018 10:39:15 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1522258755; cv=none; d=google.com; s=arc-20160816; b=zRUiOg5znbpbBq2+Fs3O2/tQ3+tf3AqP40L7Bk9M2qpGBc5Hfi1Tdx0TZRYbe4Ta5K za+lxUY9gjkKOK7I9NNAYHAzW/Qlti+Y4NRXJP8n4vzbfXinkyWNEmfs42be2PfUSvit jn0zllA8UZwRVofHVFZEBVwCkGzMpW2D9xuOOiHxT9+NQoQtoh0lDUz6VexScL4HpLBf yw7gdSdD8tvJhimvQZI8zqLppPD+NVXlsavmK+QRi+WtfmhCBZe1O3DtPNfoBoO2WpgG cm71aFAtTdCpHNjbrjm4jprttHYzdeJapcxdZs3t3WNO5Cv3ZTyRdviabdf1v3Hqtq3Q Id4g== 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=fHjRg2KuvhtQtQ+KX8sgYtQN4JmkxuLnId1a9MIWpnE=; b=pUvK/L0bkanMt/znqIc6uyJJcn3SF+mIH2M/+xiawbFYrdR94f4B2efFS1tiQGLUYm /VSgv+bfIn7FPUPixUVjrjMsRzs6warkVQ6JWtsRGY1BpnJ3GG+JEiIL8+dQToAsNOBm BMLyHsWx9hZIm6Cvf0lchkHd/7cLP41RTUfxrfmP7My/I/q9JFsV8zGMffkRdCuYNEjH ZxzqbUA0+gWyxUoaNdUIG8WceJLl80elcfmaSFmEnT+J2KiVWa9BvIL/BFz3geOKJMB+ Q423dvlZVeoASCMUlCxJ0tnWJZpYaSwlTf/3BCCuDfIE2ub5bXO8PjpWlCYPISHvBpMd 5ScA== 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 z1-v6si3936173plb.101.2018.03.28.10.38.59; Wed, 28 Mar 2018 10:39:15 -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 S1753022AbeC1Q4a (ORCPT + 99 others); Wed, 28 Mar 2018 12:56:30 -0400 Received: from mga17.intel.com ([192.55.52.151]:60698 "EHLO mga17.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751903AbeC1Qzw (ORCPT ); Wed, 28 Mar 2018 12:55:52 -0400 X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga006.jf.intel.com ([10.7.209.51]) by fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 28 Mar 2018 09:55:51 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.48,372,1517904000"; d="scan'208";a="29654623" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga006.jf.intel.com with ESMTP; 28 Mar 2018 09:55:48 -0700 Received: by black.fi.intel.com (Postfix, from userid 1000) id BDA3E763; Wed, 28 Mar 2018 19:55:43 +0300 (EEST) 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: [PATCHv2 14/14] x86: Introduce CONFIG_X86_INTEL_MKTME Date: Wed, 28 Mar 2018 19:55:40 +0300 Message-Id: <20180328165540.648-15-kirill.shutemov@linux.intel.com> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180328165540.648-1-kirill.shutemov@linux.intel.com> References: <20180328165540.648-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 Add new config option to enabled/disable Multi-Key Total Memory Encryption support. Signed-off-by: Kirill A. Shutemov --- arch/x86/Kconfig | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig index bf68138662c8..489674c9b2f6 100644 --- a/arch/x86/Kconfig +++ b/arch/x86/Kconfig @@ -1530,6 +1530,23 @@ config ARCH_USE_MEMREMAP_PROT def_bool y depends on AMD_MEM_ENCRYPT +config X86_INTEL_MKTME + bool "Intel Multi-Key Total Memory Encryption" + select DYNAMIC_PHYSICAL_MASK + select PAGE_EXTENSION + depends on X86_64 && CPU_SUP_INTEL + ---help--- + Say yes to enable support for Multi-Key Total Memory Encryption. + This requires Intel processor that has support of the feature. + + Multikey Total Memory Encryption (MKTME) is a technology that allows + transparent memory encryption in upcoming Intel platforms. + + MKTME is built on top of TME. TME allows encryption of the entirety + of system memory using a single key. MKTME allows to have multiple + encryption domains, each having own key -- different memory pages can + be encrypted with different keys. + # Common NUMA Features config NUMA bool "Numa Memory Allocation and Scheduler Support" -- 2.16.2