Received: by 2002:a05:6a10:a841:0:0:0:0 with SMTP id d1csp3844002pxy; Mon, 26 Apr 2021 11:04:20 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy7U7xrZFxvr4lyvf9M3jOYNhw0+WsjhZsJQWffb8e1TBdGSXFx04qOYqhJxFP8WTrLjmhP X-Received: by 2002:aa7:cc15:: with SMTP id q21mr23179777edt.140.1619460260401; Mon, 26 Apr 2021 11:04:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1619460260; cv=none; d=google.com; s=arc-20160816; b=PsAKLj4YytMXn3+ULsMX+RyyBeMJC0idI5ubS3t9kQb+tOs23wGKLVR5s99tUawEAB i4KNe0gSNd9+yRK99+hXoNEhY3PSQApznXFCtP2IjPzilUdcWw2zd8NLq3BMjf1Tgpwe uAnjRbT1oQyFu4OOjpwudCzYzoE6df3MWKD10OlxnWNzhAyXyvUc/2XGFd3QkvTYAjFX Y6Ac2ZFs61lM4XZDXl682wyu3ZojoowcUBXeu57AU4+zxGLY7YEisPWx5tkxO9AHfoKE IVjVOHOIbtUqeQEpYzrnG4zcMie8vLRbwowemBEM4SAgDe2peYcWGB32sOM4oXs9s/ll t34Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :ironport-sdr:ironport-sdr; bh=TQGBY3osRXUMyA8pgNEiGAh1AI8HUpCSqDsNROymdwU=; b=rSRBxsyUPTHE/qyz7OcLVY0VLfkYMEjdkOr++Yl6b4ZiNqOjOnrLz8S/ubpvZvzj21 2JuNzmNUNer5ujV0ISxINB3dYE3ltq37hk9DVQQkdlWf8b6eOOUQEsqCuwFt0RFZ8tDD ZytyCwMG6+R1Ssg4dky4OPJOnUHFc1bJZJp/C+bdk5TxYDHVp26TXHXksEIzQeV58o/c RNROHc/8kV3bM4XGRErqtht+jsVimQKn0e6grTrKVyFPRhoHFnq1k9sdthMl3i2Cqdlx CLzqbfkrpcg8Y9ujxYf6CdxkxQeJiaLcNtuutx5L8KSKPCp//U4okGYwcN6cK6QNE6nR UXyg== 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 v8si14662180eju.354.2021.04.26.11.03.56; Mon, 26 Apr 2021 11:04:20 -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 S234287AbhDZSDa (ORCPT + 99 others); Mon, 26 Apr 2021 14:03:30 -0400 Received: from mga14.intel.com ([192.55.52.115]:31731 "EHLO mga14.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234217AbhDZSDW (ORCPT ); Mon, 26 Apr 2021 14:03:22 -0400 IronPort-SDR: 7XUw59QjsrI+7p7DC69fqdnylSapn+bt61JWZpkU7mD+oA/+jgGTD65/2yCF9hk9Uu84tvAjXU 2TxMsbLCKq8A== X-IronPort-AV: E=McAfee;i="6200,9189,9966"; a="195934014" X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="195934014" Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by fmsmga103.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 11:02:40 -0700 IronPort-SDR: 5Bh+oBc+13KOMasGgi9erfzxHWn4/g2mquTTNMpAAnToq3dOFSLYKKcKfmPOeAJs4ZVTKoOclI /BUnHykuhnlA== X-IronPort-AV: E=Sophos;i="5.82,252,1613462400"; d="scan'208";a="447353330" Received: from ssumanpx-mobl.amr.corp.intel.com (HELO skuppusw-mobl5.amr.corp.intel.com) ([10.254.34.197]) by fmsmga004-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Apr 2021 11:02:40 -0700 From: Kuppuswamy Sathyanarayanan To: 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, Kuppuswamy Sathyanarayanan Subject: [RFC v2 02/32] x86/tdx: Introduce INTEL_TDX_GUEST config option Date: Mon, 26 Apr 2021 11:01:29 -0700 Message-Id: <32870c547c6e143a8f42667c6087ee61dc07e90b.1619458733.git.sathyanarayanan.kuppuswamy@linux.intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: References: MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 + 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" -- 2.25.1