Kernel KVM virtualization development
 help / color / mirror / Atom feed
From: Leon Romanovsky <leon@kernel.org>
To: Jason Gunthorpe <jgg@nvidia.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 1/4] attestation: Start the new subsystem using tsm_report and mr
Date: Thu, 3 Dec 2026 13:01:36 +0200	[thread overview]
Message-ID: <20261203110136.GP31440@unreal> (raw)
In-Reply-To: <1-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com>

On Mon, Nov 30, 2026 at 08:52:21PM -0400, Jason Gunthorpe wrote:
> Create a basic starting point for drivers/attestation by moving the
> tsm_report and tsm_mr core code into drivers/attestation and revising the
> Documentation.
> 
> The attestation subsystem is intended to support drivers for all Roots of
> Trust (ROTs), both local to the CPU and on-device ROTs accessed through
> SPDM. A well-known example of a ROT is a Trusted Platform Module, though
> many different specifications for much simpler ROTs now exist.
> 
> In general, a ROT is a HW device that securely holds a private key, can
> generate signed evidence reflecting its current state, and often includes
> a measurement register system to create a tamper-proof log signed by its
> private key. Sophisticated ROTs may also provide functions like sealing.
> 
> ROTs have become a significant security technology in the server space.
> They are used to ensure the supply chain has not been tampered with and
> to confirm directly that devices are running the expected, untampered
> firmware and software.
> 
> tsm_report and tsm_mr each implement half of a ROT. tsm_mr allows
> manipulating the measurement registers that tsm_report produces signed
> evidence over. As things are restructured there will be one driver for
> the ROT, and the two uAPIs of report and mr will continue forward using
> that single driver.
> 
> Ultimately the subsystem should encompass at least the following devices:
>  * A simplified TPM interface for quote and PCR extend
>  * AMD CC VM signed reports
>  * ARM CCA VM signed reports and REM measurement registers
>  * ARM FIRME bare metal signed reports
>  * Caliptra open source ROT
>  * Intel TDX CC VM signed reports and RTMR measurement registers
>  * SPDM protocol over PCIe DOE and other transports in bare metal
>  * "SPDM" evidence inside a CC guest using a TDISP device
> 
> Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>

<...>

> --- /dev/null
> +++ b/drivers/attestation/Kconfig
> @@ -0,0 +1,17 @@
> +# SPDX-License-Identifier: GPL-2.0-only
> +
> +menuconfig ATTESTATION
> +	tristate "Attestation and root of trust devices"

I wonder if you really want this subsystem to be built as module. Why
not to declare as bool?

Thanks

> +	select CONFIGFS_FS
> +	select CRYPTO_HASH_INFO
> +	help
> +	  Attestation and root of trust (RoT) devices include a range of
> +	  hardware used in machine attestation. Typically, this hardware
> +	  protects a private key and can generate signed evidence to report
> +	  its state. A root of trust often has measurement registers used to
> +	  create a tamper-proof log.
> +
> +	  The subsystem supports drivers for devices of this class and provides
> +	  uAPIs to get the information out to userspace.
> +
> +	  If you are unsure, say N.

  reply	other threads:[~2026-12-03 11:01 UTC|newest]

Thread overview: 25+ 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-03 11:01   ` Leon Romanovsky [this message]
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
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=20261203110136.GP31440@unreal \
    --to=leon@kernel.org \
    --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=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