From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.48 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135558; b=JzyTlWg7sMaTF6vIh6sEwsB6pUHkVjxu7EIAUND7R9NVJxQGmcVVZtQCWIwcUVLk+r78 VO29pgRPMJmMThAxxsdOdizhzmXUcbYvteK8q1QyhwUIi4HiH6xAVu9pefnhmdGE0am6A XdqO1OcoBlLs4/I4PYKq+anYpA5inIzg9eOQpVKJHzfKepI39YRJ9K/VuscwI3wUoxn+e QOn/MP6GmzI0Y15vQxPMlU0HVY3t3ZIQBc7Sx5R+8isbnsrLLDf6Sn1awcuoq6VLoiYKV AeuQEfp9rXrCnGmzIZ9JflVOyDSXJ4Aqet+W687vYY0WiWcyMD2HgV3ta7Xtj+Rai7A== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796135558; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; bh=S9rNK6jfhU++ocz1Fus606Gf0mM8OvONxZWXaaSENoc=; b=1TpIGqkSavyrf7zz6pKuoCa1xFdrt64wOQD8GupRp5hWmhswc6JvoNXsrDtfsscbbRSo gKydHyhYQeTQL8SOa+FbMNM+a4GRmb6YM1grJ9bkUYDMIuNxRrkIPTxKUaWdZGZde+s6a SdYBxVTNbDK1DPhjHwmqUcIqWjHG627YXKVwUhDhmVs89FvxmzX6cZvKJGujqUNqxWb/y eSDI2sFO7LdqlZ2GyG8YBxfnUM508Kl66HXyOakJvCWpObOP8H2lM+fTeQ3qW45cdkbxF q5Mm7Fa/mHHbihi6Yc1Kb3VVAqeT/Q9G7JYWZPgMVMwDLG+fYuq0sExFUYx2mkEMoQw== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=resnulli.us; spf=pass smtp.mailfrom=resnulli.us; dkim=pass header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=kFl0azkp; arc=none smtp.remote-ip=209.85.128.48 Received: from mail-wm1-f48.google.com (mail-wm1-f48.google.com [209.85.128.48]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 54971606A322 for ; Tue, 1 Dec 2026 14:32:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 54971606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=resnulli.us Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=kFl0azkp Received: by mail-wm1-f48.google.com with SMTP id 5b1f17b1804b1-4bb9d8e8e90so88200055e9.3 for ; Tue, 01 Dec 2026 06:32:36 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796135555; x=1796740355; darn=vger.kernel.org; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:from:to:cc:subject :date:message-id:reply-to:content-type; bh=S9rNK6jfhU++ocz1Fus606Gf0mM8OvONxZWXaaSENoc=; b=kFl0azkpWHdDt3/BGLLaJuU9S78nMrXSpOY7Y9gg3rTk/PG943O8Rv0ECfvOhleQ4D Z1vbi46Hcl011oB+Pmt1/EKmz6wOJm4u9YVUkSpbF7xtGI4WGMzNFT++dUDKfQEBHQwE 39vp8ZX//kZ75cF4+yieitfBpeUVbQGN6TczHVTKWWLmUZIqb70gq/cqTpCHtNDgkbFs G2Mj74q8N2Sd1CAbNocEKwDPQgDkXM0M4Qu8U2x/PcviVPEWUNYBF5eyl0ssxVyBrGYI Odq/WYTDOneDtpa5nwPglV67eBDg/OHk5gIvJd1ehfDD0al52YQmYig+jtj0EXx1NnIg A10Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796135555; x=1796740355; h=in-reply-to:content-disposition:content-type:mime-version :references:message-id:subject:cc:to:from:date:x-gm-gg :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to :content-type; bh=S9rNK6jfhU++ocz1Fus606Gf0mM8OvONxZWXaaSENoc=; b=14TmTFQMguKuvyCwtk8rxhXxkSMSBSeQb8eFCweHU68oYWJxCwGuHp2vjDaTOCT6Sn YsZFdfJNOzRuMyEeZuIUNqC0uhgV2D5w4VVsoPSpsdaaCUAJhG8x9CbIuIUuZl0KGsU9 4OBkJ/qJifgtC32bW6XKw+8u5i4Wxt100SIsXEnbsRDR+uxvUJAsXqtZiOHy5GqNvnJa qt/kz83jnkttVxmyqJxkaI7aKoLkGT+PRqn2YFrXYZgjlzUlLKMtvL1ttR25RwPcCDca ICOCpEZWbNiBuuNBdqn94u1GUrU3Ikgb2JTqFUjiqxlqIroZeTZVCH3dMZYctduHK8YE 5KFA== X-Forwarded-Encrypted: i=1; AL+hErEf/hn1oBZ9HWIvB41rBxw6KKv6FpwGun7MJXsEryAxNTrWlNz3VbvVkctYBNlNtRxW6A0=@vger.kernel.org X-Gm-Message-State: APuU4Z/sVz0whAJcNb3LJvmdJ8VtzDATcIjdVynnuLd6EcUqpehqDf9Q /rvIQn1MUWiB6fmbvZEcMp2QbQtvg9sbBZN5/EFv7ml9wet7LRHgQtbkWhbKpJPbpBY= X-Gm-Gg: AZFdTZdyUtbv7F5FDlMvKljXzEMl+wjTf+uRaqkBYskWdec5HmwYJdL3u4JbwKbOaiG Qrjx8tx0e0xsCuleY3p9g/sEv3H0gh6WCOO1Egc/lvwh2dENkapf81Idrzn0vEP3pVaeca1B+So G7FzXFzLexFK9NcQX3UbsxxVG+Xvwc7wiNEXgE62jzFNVF/glr/3vRLo1n0b/mPD44zcMYN2Ijo 9xCy0nDaB1P9DL+na73jMrxadTcH7Bbidju7ZcM+wl/UZooPliCyc5xtIeS6d9cqFKlpYuFe7c1 aqb+QDliC8YSaoj7PtgOfonkXn4HWHmlJX8pOtZAbo1YV3hQXHEG5I0787keQP7iITR2fXAESxt Tn9yQ37zyX8RuRYJYlr9NAI1b5mhBRZDOQsTZS55f5UKP7odEw4qr24e8krfiAFQFlL4xxfARYI Z0hU1bloqDjl1sg57Rb37cz55ndDviJRWnIiAz6qnHlTKVxVBclYNHMaRTlVUFADuHkCw5LT9ty DUdaKyRwIWwJPpr1CDisM7XabRkXVtLSl/ageCKxRiNPrAi7lVHQonq4rcjPc4Gjk/3d79ZFJ2S M5xLaEFNfALZ2C0Z2vZAk8wR5/XBPBtGjbRV X-Received: by 2002:a05:600c:5303:b0:4a2:1655:87db with SMTP id 5b1f17b1804b1-4bb88785d2fmr718370235e9.0.1796135554938; Tue, 01 Dec 2026 06:32:34 -0800 (PST) Received: from localhost ([128.77.52.125]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-4bb853b216esm1080146545e9.12.2026.12.01.06.32.33 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 01 Dec 2026 06:32:34 -0800 (PST) Date: Tue, 1 Dec 2026 15:32:29 +0100 From: Jiri Pirko 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, patches@lists.linux.dev, Yeoreum Yun Subject: Re: [PATCH tsm 0/4] Start building drivers/attestation Message-ID: References: <0-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: <0-v1-56c8df81fd64+16c-att_start_jgg@nvidia.com> Tue, Dec 01, 2026 at 01:52:20AM +0100, jgg@nvidia.com wrote: >Move tsm_report and tsm_mr, along with all their drivers, into >drivers/attestation. There are no functional changes, but some modules >are renamed to consistent attestation_* names. > >This largely just moves drivers/virt/coco/* stuff to drivers/attestation >and makes some adjustments to have per-arch subdirectories to hold all the >stuff. virt/coco was OK when this was only going to be used inside >confidential VMs, but with the new coming needs for bare metal and host >support under the same umbrella it isn't a good place to build an entire >subsystem. > >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. > >The existing drivers are all for the ROTs integrated into confidential >VMs. AMD, Intel and ARM each have an attestation ROT linked to their >respective implementations. > >A following set of drivers, like ARM FIRME, will start to bring in non-TPM >ROTs on bare metal systems. The kernel SPDM implementation will also live >here and use the upcoming enhanced uAPI. > >Eventually we hope to provide a kernel multiplexer so that in-kernel >users, like IMA, can access any attestation measurement register instead >of being hardwired to use only the TPM. > >Several reorganization and cleanup passes will be needed after this to >turn it into a well-formed subsystem. Looks fine to me overall. Thanks! set- Reviewed-by: Jiri Pirko