Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.17 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796147920; b=oY4xXZIZ4t/0aUKy4pcAP77Iv4lwC6JNlg/zV/4VxuakTSOKvjfk1gTqE0WFVeDfO47r jJWC7ff86peF0EIpWmIbMpygx74TATE2j7ozAoqt0e8GwCbHORysx83ta46xZalL1qsn/ nmytqI67w6IaFNbhOL2RJOHPTwNK2BkzBRlKe7KmgbmAnzkdj83gUdlV1lpJGQ/ap8Ub7 SfJrwJosy/ik+xUp0B9mQVPfy2A3Qe+Y9c/1F9VjSbXajpMcQQ/Q+oK7RTMwSohWUcSQf Fx12jEGBS1w48GkztaD+2zTne05y8lBT/BY2yYiYdCwxhFBpGhWpl1at8gXpkFR/lIA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796147920; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Message-ID:Date: MIME-Version:User-Agent:Subject:To:Cc:References:From: Content-Language:In-Reply-To:Content-Type:Content-Transfer-Encoding; bh=IwR6COfy3Y9ORPKxQmaN4sNn8H3dEBNrlexwL++FvjQ=; b=AmR+cj/nKhjWFpGPXpabppQzIhHa+TyzF99Scegc/97PEaFCX6smL+xcRTvfWUcSXvd0 0SNzt1rEYbzie6MVdCPCk9TfsrR5ieWKjm9lWK+G3SjQFvx9vxWslE7Xo8CEbItMB3ZDa sJlfz/KgqD2SAOolMq75Iw4Nt1sIc9ivZPLSW4rsGv7e0L6KjhEleD+rsme00N9sPN6/B WmBpmD6ahUgIQOyBvGz2CBrCyL0wmhtouOEZNB4tjvGRCnRpg4o7JkRNjEeEVJP82JZWZ +l13UUUI0/kr7c+5dKBqDwCWygNp7dCIy1pWepIbjnQSiMDpPGtpiwkAB8E+5/kytNw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=FBaPv6v9; arc=none smtp.remote-ip=192.198.163.17 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.17]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 71924606A320; Tue, 1 Dec 2026 17:58:39 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 71924606A320 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=FBaPv6v9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1796147919; x=1827683919; h=message-id:date:mime-version:subject:to:cc:references: from:in-reply-to:content-transfer-encoding; bh=IwR6COfy3Y9ORPKxQmaN4sNn8H3dEBNrlexwL++FvjQ=; b=FBaPv6v9UCW2HJ0ViMYbgQAJR1qy73r28ow/8b4tjCij/ZPnvaVt2sVc DhjT2EjGz9BPZAVTEi07hTcZ349FK/DezWkzaZ2aSxP5Gc8nUNJ+oegaA QOQqyXNw7LpR31rSe01GCqBwRCLFS77G/8bxtVro9gmDXCl3OD8q9+0Lp LLlsVMCjAskc9UIkAMJUIaqeW3azBLygd/lJTK78snFbqhKh7Y2wzZNeK F4SdzeaPDO9+G8M7J7w6ig7fpPpP5gPYSQhlYZbn4jtQ6wAqDrdbYsn2w +Tk6m8Sws7iIHD6DSNOUdXcxZwBKzy59dsfQkS1Ll7nEWein/cKMUxktc w==; X-CSE-ConnectionGUID: Ab0DF3G4QZqlecgvbZK5yg== X-CSE-MsgGUID: HRKhIr6QTOmFzaEkAO1fZg== X-IronPort-AV: E=McAfee;i="6800,10657,11983"; a="5045208" X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="5045208" Received: from fmviesa008.fm.intel.com ([10.60.135.148]) by fmvoesa111.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 09:58:38 -0800 X-CSE-ConnectionGUID: PvE7z8h7QP+u4QHq1PEk8g== X-CSE-MsgGUID: dGVV1XpQREmkUXrZLnGksQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,245,1787036400"; d="scan'208";a="13621888" Received: from gmitchel-mobl2.amr.corp.intel.com (HELO [10.125.111.29]) ([10.125.111.29]) by smtpauth.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Dec 2026 09:58:37 -0800 Message-ID: <4b6363b8-43ad-4800-a3e1-8c9c6bd7a56c@intel.com> Date: Tue, 1 Dec 2026 10:58:35 -0700 X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH tsm 3/4] attestation: Move Intel TDX Guest tsm_report and mr driver To: Jason Gunthorpe Cc: Alexey Kardashevskiy , "Aneesh Kumar K.V" , Borislav Petkov , Jonathan Corbet , Dave Hansen , "H. Peter Anvin" , Kiryl Shutsemau , kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Lukas Wunner , Ingo Molnar , Randy Dunlap , Rick Edgecombe , Shuah Khan , Shuah Khan , Thomas Gleixner , x86@kernel.org, Jiri Pirko , patches@lists.linux.dev, Yeoreum Yun References: <3-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com> <7187409e-becb-4a94-a669-29c39ecd7343@intel.com> <20261201163039.GG114472@nvidia.com> From: Dave Jiang Content-Language: en-US In-Reply-To: <20261201163039.GG114472@nvidia.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 12/1/26 9:30 AM, Jason Gunthorpe wrote: > On Tue, Dec 01, 2026 at 09:19:47AM -0700, Dave Jiang wrote: >>> +# SPDX-License-Identifier: GPL-2.0-only >>> +config ATTESTATION_INTEL_TDX_GUEST >>> + tristate "Intel TDX Guest Attestation Driver" >>> + depends on INTEL_TDX_GUEST >>> + help >>> + Driver for the TDX guest signed quote from the Root of Trust inside >>> + the TDX module for confidential VMs. The quote includes 4 measurement >>> + registers. >> >> Unlike the RMM and the PSP, the TDX module doesn't sign anything. It >> produces the TD report, and the TD Quoting Enclave (QE) on the host >> signs it into a quote, which the guest gets through the GetQuote >> hypercall. See the Attestation section of >> Documentation/arch/x86/tdx.rst. > > Yeah, but from this perspective these complications are all invisible > and hidden in the driver. It doesn't matter that there is the > complicated dance, at the end of the day TDX module is fully in > control of the data that is signed by the platform. That is no > different from any other CC VM ROT. > >> Also looking at tsm_mrs[], it looks to expose 8 measurement registers. > > I was only thinking of the mutable ones as measurement registers, but > right, the non-mutable ones are there too. ARM also has non-mutable > ones. > >> How about something like this? >> >> Driver for TDX guest attestation. The TDX module produces a TD >> report, and the host's TD Quoting Enclave signs it into a quote >> through the GetQuote hypercall. The report carries MRTD, >> RTMR0-RTMR3, MRCONFIGID, MROWNER and MROWNERCONFIG. > > Can we simplify the first part: "The TDX module produces evidence > signed by the platform" ? Yup. Also Rick has pointed out that with the new DICE based scheme it should be same as other vendors. So simplified will do. DJ > > To keep the language in line with the proposed uAPI? > > Thanks, > Jason