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 13:53:05 -0400 [thread overview]
Message-ID: <20261201175305.GI114472@nvidia.com> (raw)
In-Reply-To: <0a43b342-fd9f-4f04-8fd7-45e52a4e681d@amd.com>
On Tue, Dec 01, 2026 at 11:33:10AM -0600, Tom Lendacky wrote:
> > eg you could give it a GUID and run it through the GUID mechanism.
>
> Currently the service_provider is used to route between a direct guest
> request and an SVSM-based guest request, so the same mechanism could be
> used to add a route for the TPM request.
Yeah that seems like a good thing to try to me.
> > What is the use case to share the pTPM's EK to the guest without any
> > further interaction to the pTPM?
>
> My understanding of it is based on section 3.8 of the SNP 1.59 ABI. Given
> that, having it be part of the current /sys/kernel/config/tsm/report/
> seems to make sense.
That section is pretty clear and is more like what I imagined:
The relying party receives the following objects:
* SEV attestation key certificate chain
* Guest attestation report
* TPM EK certificate chain
* TPM attestation key (AK) blob
* TPM quote
* TPM binding object (TPM_INFO structure. See Table
So tell me where they all come out of the uapi on the guest?
I think it should be
sev-guest attestation driver (this patch)
1: evidence-get(amd-certificates)
2: evidence-get(amd-guest-report)
6: evidence-get(amd-tpm-info)
amd-guest-ptpm attestation driver:
3: evidence-get(tpm ek)
4: evidence-get(tpm ak)
5: evidence-get(tpm signed quote)
This latter one should mirror how the eventual TPM/attestation adaptor
will look.
Alternatively you skip #6 as part of the uAPI and instead kernel
ensures #3 is authentic internally then userspace trusts it. Most of
our guest/host tamper preventions are kept invisible to userspace.
I also think this is perhaps incomplete as a TPM quote without any of
the PCR logs is of highly questionable utility.
In any case don't half implement a feature, you need to show how all
of this works together, including the host to guest API for items 3-5.
I think you will have a much easier time to build it on top of Jiri's
new uapi than trying to squeeze all of this into tsm_report. I'm not
that excited about new creative tsm_report users at this point...
And all of section 3.8 is unambiguously attestation related..
Jason
next prev parent reply other threads:[~2026-12-01 17:53 UTC|newest]
Thread overview: 24+ 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 17:58 ` Dave Jiang
2026-12-01 17:44 ` Edgecombe, Rick P
2026-12-01 17:57 ` Jason Gunthorpe
2026-12-01 0:52 ` [PATCH tsm 4/4] attestation: Move AMD SEV Guest tsm_report driver Jason Gunthorpe
2026-12-01 1:00 ` sashiko-bot
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 17:33 ` Tom Lendacky
2026-12-01 17:53 ` Jason Gunthorpe [this message]
2026-12-01 18:57 ` Tom Lendacky
2026-12-01 19:33 ` 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=20261201175305.GI114472@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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.