Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Dave Jiang <dave.jiang@intel.com>
Cc: Alexey Kardashevskiy <aik@amd.com>,
	"Aneesh Kumar K.V" <aneesh.kumar@kernel.org>,
	Borislav Petkov <bp@alien8.de>, Jonathan Corbet <corbet@lwn.net>,
	Dave Hansen <dave.hansen@linux.intel.com>,
	"H. Peter Anvin" <hpa@zytor.com>,
	Kiryl Shutsemau <kas@kernel.org>,
	kvm@vger.kernel.org, linux-coco@lists.linux.dev,
	linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org,
	Lukas Wunner <lukas@wunner.de>, Ingo Molnar <mingo@redhat.com>,
	Randy Dunlap <rdunlap@infradead.org>,
	Rick Edgecombe <rick.p.edgecombe@intel.com>,
	Shuah Khan <shuah@kernel.org>,
	Shuah Khan <skhan@linuxfoundation.org>,
	Thomas Gleixner <tglx@kernel.org>,
	x86@kernel.org, Jiri Pirko <jiri@resnulli.us>,
	patches@lists.linux.dev, Yeoreum Yun <yeoreum.yun@arm.com>
Subject: Re: [PATCH tsm 3/4] attestation: Move Intel TDX Guest tsm_report and mr driver
Date: Tue, 1 Dec 2026 12:30:39 -0400	[thread overview]
Message-ID: <20261201163039.GG114472@nvidia.com> (raw)
In-Reply-To: <7187409e-becb-4a94-a669-29c39ecd7343@intel.com>

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" ?

To keep the language in line with the proposed uAPI?

Thanks,
Jason

  reply	other threads:[~2026-12-01 16:30 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-01  0:52 [PATCH tsm 0/4] Start building drivers/attestation Jason Gunthorpe
2026-12-01  0:52 ` [PATCH tsm 1/4] attestation: Start the new subsystem using tsm_report and mr Jason Gunthorpe
2026-12-01  0:52 ` [PATCH tsm 2/4] attestation: Move the ARM Realm Token tsm_report driver Jason Gunthorpe
2026-12-01  5:25   ` Aneesh Kumar K.V
2026-12-01 13:03     ` Jason Gunthorpe
2026-12-01  0:52 ` [PATCH tsm 3/4] attestation: Move Intel TDX Guest tsm_report and mr driver Jason Gunthorpe
2026-12-01 16:19   ` Dave Jiang
2026-12-01 16:30     ` Jason Gunthorpe [this message]
2026-12-01  0:52 ` [PATCH tsm 4/4] attestation: Move AMD SEV Guest tsm_report driver Jason Gunthorpe
2026-12-01  3:05   ` Borislav Petkov
2026-12-01 13:07     ` Jason Gunthorpe
2026-12-01 15:46       ` Tom Lendacky
2026-12-01 16:20         ` Jason Gunthorpe
2026-12-01 16:38           ` Tom Lendacky
2026-12-01 17:11             ` Jason Gunthorpe
2026-12-01 14:32 ` [PATCH tsm 0/4] Start building drivers/attestation Jiri Pirko

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261201163039.GG114472@nvidia.com \
    --to=jgg@nvidia.com \
    --cc=aik@amd.com \
    --cc=aneesh.kumar@kernel.org \
    --cc=bp@alien8.de \
    --cc=corbet@lwn.net \
    --cc=dave.hansen@linux.intel.com \
    --cc=dave.jiang@intel.com \
    --cc=hpa@zytor.com \
    --cc=jiri@resnulli.us \
    --cc=kas@kernel.org \
    --cc=kvm@vger.kernel.org \
    --cc=linux-coco@lists.linux.dev \
    --cc=linux-doc@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=lukas@wunner.de \
    --cc=mingo@redhat.com \
    --cc=patches@lists.linux.dev \
    --cc=rdunlap@infradead.org \
    --cc=rick.p.edgecombe@intel.com \
    --cc=shuah@kernel.org \
    --cc=skhan@linuxfoundation.org \
    --cc=tglx@kernel.org \
    --cc=x86@kernel.org \
    --cc=yeoreum.yun@arm.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox