From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796295701; b=C7C5k/oJzWvxyX+zxH9vbsZVgEV5rpO0L4YkrB/d7KVgrj+aJDsyQLUVK7p+/V0V+Lv3 CW5dviVzxydKeXk+PfZCXKekjy0ArY3Z4vHiXwzJkh3vQaWT7aKB2XZtVs2rVTxWA7xTI 8ivIo+0gmNKhZ8Jis6Ie8a4JxLgxbtQr3/djDBiWeI+XUATJH0KuEJb9fYollQNfwLmO9 rulMlB5L5ZxtOos5kj5PydhuVTjZAv0fNgi3WguWzaILRoiWUJ7EUTa4ifEjYqd4EUeXj vJjEaUk77e8s489PbcABIOJPbNnpf5VOGUdFIqRVcPhDLBtSclQKCaQPN4y2Toud0rQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796295701; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=3eSRRk2rRdaDMVZgfzH6e2gElghOyOfow/cn91gZPrg=; b=YI+7IgX9z0NBETDnjB264M1yDx1g7b2xyop3E1ni0zcX7WcyA/G7uHvS3J57VE7Nkzx9 RSLTRucFQxuC1wgVAU5nLLZNP3tuvXLZ3NQ6gAFi3mhXrEoT29qfjQegGabYFTbytj/F8 xwqAJop7lpXEx+7/XHynnA4kELNWzFknAVnIsvnsUVwOiG5rHn3cR8Z6bLSyltz6FMyRW W53HP6VUY92Xkfn4HJQQdxhrY/i5A35E9t8WpfNpbvHwtKwe3KGf8hfKBrfylNGhcOlP6 41iQG/GmIUo+AzyNYPER9u1irAjStQBqspFEdND0ljHfR3//iX6m6OtCJ5i1hKuRqRQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IxowhWcu; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 766D0606A322; Thu, 3 Dec 2026 11:01:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=IxowhWcu Received: by smtp.kernel.org (Postfix) with ESMTPSA id 784FE1F00893; Thu, 3 Dec 2026 11:01:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796295701; bh=3eSRRk2rRdaDMVZgfzH6e2gElghOyOfow/cn91gZPrg=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=IxowhWcuqSA7pWBLwiQi6ZWktudm1JtpYgRZzQ2VmaWURpMyuEzIqrmJZU0QEZ8eE 22XGRxvAidpI4jNANXoeOaICUFOXJo/H8iJPiTSImdVPFZ2J0YkNikGUMfshrGA8iF iS1LinqTATQG7N4eUcaqU+ecAXxgSAH+8PczR/QTSxZt43spUcV0g7iohqnWMx/ut+ oJtd0YsWm8XGpzNjF6OlpOOUDHQLbeXfQeAM+O0tDg363gAlHHv4jtfgwRa4SfhRkg bH9ogriqYP3TZ+ZYHPLdTqQJWO168Xdlk+1tcpSJM5a/EFj4GAkVNwzNnK2mt6nmf8 gg7M/lEZM16TQ== Date: Thu, 3 Dec 2026 13:01:36 +0200 From: Leon Romanovsky To: Jason Gunthorpe Cc: Alexey Kardashevskiy , "Aneesh Kumar K.V" , Borislav Petkov , Jonathan Corbet , Dave Hansen , "H. Peter Anvin" , Kiryl Shutsemau , kvm@vger.kernel.org, linux-coco@lists.linux.dev, linux-doc@vger.kernel.org, linux-kselftest@vger.kernel.org, Lukas Wunner , Ingo Molnar , Randy Dunlap , Rick Edgecombe , Shuah Khan , Shuah Khan , Thomas Gleixner , x86@kernel.org, Jiri Pirko , patches@lists.linux.dev, Yeoreum Yun Subject: Re: [PATCH tsm 1/4] attestation: Start the new subsystem using tsm_report and mr Message-ID: <20261203110136.GP31440@unreal> References: <0-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com> <1-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com> X-Mailing-List: kvm@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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 <...> > --- /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.