From: Tom Lendacky <thomas.lendacky@amd.com>
To: Jason Gunthorpe <jgg@nvidia.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 11:33:10 -0600 [thread overview]
Message-ID: <0a43b342-fd9f-4f04-8fd7-45e52a4e681d@amd.com> (raw)
In-Reply-To: <20261201171102.GH114472@nvidia.com>
On 12/1/26 11:11, Jason Gunthorpe wrote:
> On Tue, Dec 01, 2026 at 10:38:03AM -0600, Tom Lendacky wrote:
>> On 12/1/26 10:20, Jason Gunthorpe wrote:
>>> 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.
>>
>> So something like /sys/kernel/config/tsm/report/tpmblob? Both outblob and
>> tpmblob take a nonce, so would we want to use the same inblob or a
>> different file?
>
> I would imagine you use one of the mechanisms to change the outblob?
> It is a signed report so it should go that way as a single request
> with dedicated inblob sequence to specify the nonce.
>
> 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.
>
> With the new uAPI it will be cleaner..
>
>> Or would it be better to be a separate configfs directory, e.g.
>> /sys/kernel/config/tsm/tpm-report, with inblob and outblob for consistency?
>>
>> Does TDX or CCA having anything similar for a pTPM binding?
>
> I have not seen anyone do pROT binding into VMs yet. I'm aware of
> conversations but nothing concrete. Usually people are interested in a
> quote from the pROT, not just a binding. Is that where you are going
> too?
>
> 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.
I can delay my series until this lands to build on the new file location.
>
> If you imagine further pTPM interaction then maybe this should be its
> own guest attestation driver to represent the pTPM.
There is nothing further that I'm aware of.
Thanks,
Tom
>
> Jason
next prev parent reply other threads:[~2026-12-01 17:33 UTC|newest]
Thread overview: 21+ 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 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 [this message]
2026-12-01 17:53 ` 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=0a43b342-fd9f-4f04-8fd7-45e52a4e681d@amd.com \
--to=thomas.lendacky@amd.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=jgg@nvidia.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=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