Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp4009519pxy; Mon, 26 Apr 2021 15:33:38 -0700 (PDT) X-Google-Smtp-Source: ABdhPJywlxQsjsBh1em2GMyQxxdGKk3mCqCAqzLiYtVUDAiykwyS4HQi4tv3KpYdBV2d0Z9JIVH+ X-Received: by 2002:a17:906:6801:: with SMTP id k1mr20282900ejr.137.1619476418464; Mon, 26 Apr 2021 15:33:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619476418; cv=none; d=google.com; s=arc-20160816; b=rdU18Nlcveq+EBZuWQGvx+invZ++GVft0em7e9xldbSW+Vw+mMuS/GEwxjCH6a07Ot x9vkm+qFiv4QlWBB5b+Rl4bZDCZQtpApLFGjgPaN5z1OgxlGTvygSS8Rc3aojgW7Perx MTmVgYCaKv7heBSmLhR2p9wE6a8wcu1mD7EKCH8VuO0z2MerYzeomgDQzqkZKun5AGkg ogLKMlEJ6Em+20l7FR9l5GD4LuVnQKhkZNBZuDR8FBNjYM0kTDznEz0SrR+ZH1wzyNlQ Aur2g7oaLkMOB4qfIMVKCzEBlDmi9KuS4Xi5hLLhxxbhjcm60Tc0Dsy0Ul+8nXa5vPCB aXwQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:ironport-sdr:ironport-sdr; bh=RDK0qfXFvk8RzYekg0H4Hw8cZTMNUH/MlhQsuUI2OY0=; b=dg8cnLX9gmrxiPXKLc3HsTljyI4cx2/oqKQaICbSuSi6/GMy6rDxZjY6BE0yBsx6yB OH0BmMQBWWmwipYSb+llC7+U9MopRDqR+aij+c2BbIYlOEmrV+5OaJAPRszaU8iDgsxb 4xyzJn2HotqYgygK2hVFKSB3Vvj/Y36JLqJK31t1fFdwt89QrV9uKv0P50DrEgJojfyf DkO6AtmfZEjoBa4luUatIS2eSktXATiJZ6/FGiTSZemdsHMDo1Sq/FRn01y96wfI4tCg Cr8AxGZQIn4vK3DLqaMJStcO5Qhw0RsXXvBPOoHF7d/Dj3A6UHPYyaB3YuXElPWGAXfj GG1g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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. [23.128.96.18]) by mx.google.com with ESMTP id d7si14084146ejd.707.2021.04.26.15.33.14; Mon, 26 Apr 2021 15:33:38 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 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 S232570AbhDZWcw (ORCPT + 99 others); Mon, 26 Apr 2021 18:32:52 -0400 Received: from mga11.intel.com ([192.55.52.93]:57982 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232116AbhDZWcv (ORCPT ); Mon, 26 Apr 2021 18:32:51 -0400 IronPort-SDR: 4e0lipseylVvNoRRTxkYaOG+ephhRE0fvvgcbdo7LZBJ4EeJWKiFPmiudZqe392Cxq8WrRAIdp 35waHAYtysFQ== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="193227683" X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="193227683" Received: from orsmga001.jf.intel.com ([10.7.209.18]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 15:32:09 -0700 IronPort-SDR: KUuXlNxe3y0xU+C+8+tj7NB5PWyN+o1NpVSHnCnqYFlmRTdBgo30/zbTitFOa+vVdw6LPIbzlI S4eVDWimm0yA== X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="465272238" Received: from ssumanpx-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.254.34.197]) by orsmga001-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 15:32:08 -0700 Subject: Re: [RFC v2 02/32] x86/tdx: Introduce INTEL_TDX_GUEST config option To: Randy Dunlap , Peter Zijlstra , Andy Lutomirski , Dave Hansen , Dan Williams , Tony Luck Cc: Andi Kleen , Kirill Shutemov , Kuppuswamy Sathyanarayanan , Raj Ashok , Sean Christopherson , linux-kernel@vger.kernel.org References: <32870c547c6e143a8f42667c6087ee61dc07e90b.1619458733.git.sathyanarayanan.kuppuswamy@linux.intel.com> From: "Kuppuswamy, Sathyanarayanan" Message-ID: Date: Mon, 26 Apr 2021 15:32:07 -0700 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.10.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8; format=flowed Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 4/26/21 2:09 PM, Randy Dunlap wrote: > On 4/26/21 11:01 AM, Kuppuswamy Sathyanarayanan wrote: >> Add INTEL_TDX_GUEST config option to selectively compile >> TDX guest support. >> >> Signed-off-by: Kuppuswamy Sathyanarayanan >> Reviewed-by: Andi Kleen >> Reviewed-by: Tony Luck >> --- >> arch/x86/Kconfig | 15 +++++++++++++++ >> 1 file changed, 15 insertions(+) >> >> diff --git a/arch/x86/Kconfig b/arch/x86/Kconfig >> index 6b4b682af468..932e6d759ba7 100644 >> --- a/arch/x86/Kconfig >> +++ b/arch/x86/Kconfig >> @@ -875,6 +875,21 @@ config ACRN_GUEST >> IOT with small footprint and real-time features. More details can be >> found in https://projectacrn.org/. >> >> +config INTEL_TDX_GUEST >> + bool "Intel Trusted Domain eXtensions Guest Support" >> + depends on X86_64 && CPU_SUP_INTEL && PARAVIRT >> + depends on SECURITY >> + select PARAVIRT_XL >> + select X86_X2APIC >> + select SECURITY_LOCKDOWN_LSM >> + help >> + Provide support for running in a trusted domain on Intel processors >> + equipped with Trusted Domain eXtenstions. TDX is an new Intel > > a new Intel > Good catch. I will fix it in next version. >> + technology that extends VMX and Memory Encryption with a new kind of >> + virtual machine guest called Trust Domain (TD). A TD is designed to >> + run in a CPU mode that protects the confidentiality of TD memory >> + contents and the TD’s CPU state from other software, including VMM. >> + >> endif #HYPERVISOR_GUEST >> >> source "arch/x86/Kconfig.cpu" >> > > -- Sathyanarayanan Kuppuswamy Linux Kernel Developer