Linux Kernel Selftest development
 help / color / mirror / Atom feed
From: Jason Gunthorpe <jgg@nvidia.com>
To: Tom Lendacky <thomas.lendacky@amd.com>
Cc: Borislav Petkov <bp@alien8.de>,
	Michael Roth <michael.roth@amd.com>,
	Alexey Kardashevskiy <aik@amd.com>,
	"Aneesh Kumar K.V" <aneesh.kumar@kernel.org>,
	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 4/4] attestation: Move AMD SEV Guest tsm_report driver
Date: Tue, 1 Dec 2026 12:20:18 -0400	[thread overview]
Message-ID: <20261201162018.GF114472@nvidia.com> (raw)
In-Reply-To: <b319c17c-e439-4eb5-a3ba-caef5f7b5c04@amd.com>

On Tue, Dec 01, 2026 at 09:46:18AM -0600, Tom Lendacky wrote:
> On 12/1/26 07:07, Jason Gunthorpe wrote:
> > On Mon, Nov 30, 2026 at 07:05:53PM -0800, Borislav Petkov wrote:
> >> On Mon, Nov 30, 2026 at 08:52:24PM -0400, Jason Gunthorpe wrote:
> >>> sev-guest.c is the driver for the Root of Trust inside the PSP accessed
> >>> by confidential VMs.
> >>
> >> "The driver provides userspace interface to communicate with the PSP to
> >> request the attestation report and more."
> >>
> >> So "and more" is no more?
> > 
> > What do you mean? The weird misc device is still there, but other than
> > the symmetric key derivation it is already all absorbed into
> > tsm_report and should be obsoleted.
> > 
> > Is there some other "and more" I missed?
> 
> I'm about to submit a patch series to support the new SNP_GET_TPM_INFO
> guest request, which would be obtained via the SEV guest driver. So, yes,
> there is more.

From the docs this looks like perfectly fine attestation evidence. It
is a blob signed by the ROT after all.

Returning it to userspace should definately flow through attestation
subsystem (even tsm_report can do it, I think?) not AMD private
ioctls.. It is exactly why we are investing so much to build a common
cross-vendor framework that works for everything.

It will eventually work better because your pTPM binding information
can just be transparently discovered, picked up by systemd-report and
delivered to the verifier, without any userspace hassles.

> Maybe just move the attestation support from the SEV guest driver into the
> new file and make the SEV guest driver dependent on that code.

There are probably module ordering issues with that kind of split :(

My expecation was the misc device is only used for attestation and ROT
related topics. That is what the current state is, is that wrong?

More broadly AMD should not be having its own private misc device with
no common APIs with anyone. Dan and Greg both told everyone that same
message a long time ago, go build more common APIs.

My expectation, based on what is in there now, that the misc device
will eventually be kconfig'd away as a legacy interface since the new
interfaces will fully encompass it. The existing AMD implementation of
tsm_report is already very close to obsoleting it.

Do you see it differently?

Jason

  reply	other threads:[~2026-12-01 16:20 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
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 [this message]
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=20261201162018.GF114472@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=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=michael.roth@amd.com \
    --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=thomas.lendacky@amd.com \
    --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