From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.47 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135558; b=czWHjheUoPZsACKx2NO8uCY9aDhV1nrE6ULmHOX9kZfyB4DO6kkAthkGarnvjN/eFxsB LHQa/EmtV6dQCPn1EV2vi7QPa+U9PnfJ9gzFJKnSdrPZIiJXns9Du7sEi2npi0Ly1UtQ8 W2xerWSM//XFEryeAxosQFEYDqD0+Cz06zrwDodALxm9+YwsAXsv4pDaDTaCxGLcsg/+R U3OaJBPqRbkbzjRMXFE3+95E5qdgbVrwoV4UESHuhc8m4i4+pOTs7qLVI2pUllgm0aQxg 4grRjoHvlO80192jvzOXEjURP5uIeyGzLmhuIGITLuTFczzVbOuJipy7XXZAvNf/Itw== 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=o7zZexCHpgiu3Jhfm90+iv0NVRxcxDQ+dEHMrPWTjDf/ktVtA2oc2Vn9m1Ywy7CNR/02 ADKk2ayP8OQ8Akm0dIPzNWZRBl3i1l+qc9agw3AvBTY820lHwagMPQKEOSjIi0jP/zlOz SNfuDXZF7C2W7I6qupFcJyawLmiFUPpEratTooOVA97O7C7Of8KVfqlXT0II7n2ch0MKy AOQu2Yl9TEQb0a+YhrGGMVjR1kpYgfTnrfGn3//6qKw6gXmO2RleOItJpgaq6WA1mpPbN I5rchL/qk4K68BdfqmCw/Ey0yd9i+llgX9MKNcXlDZ3JIVOjAQcs/xmu/kLIHaPcc3A== 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.47 Received: from mail-wm1-f47.google.com (mail-wm1-f47.google.com [209.85.128.47]) (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 4F6F9606A320 for ; Tue, 1 Dec 2026 14:32:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4F6F9606A320 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) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=kFl0azkp Received: by mail-wm1-f47.google.com with SMTP id 5b1f17b1804b1-4bb9d8e8e90so88200045e9.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=ClDOz146AEpOrReMd++P3EurCiECNcSmqMPRic/DvdiSAT48fDNLNujGmcmRqvmKPu 1LlAmzqHrdKjPt6U+pImOa7T+jlYQKeSnfOYlw332/6VboexzxGaC240vSVKZvb/fvKw pSWB3c4MmwjUCF1aBKN5Lw6Wv7wFpOC/N3yZe+qoHrPaZjbLlANVWhjkbFx+/5N0vXce CvwBoOwErR7P1wsjUHYfwcF/+GWZAzvtNd3IfzIjcNvMd99+tyldlqsCPX3JDC4rsxTH 91Q1y29CwUiWrFbJSB8Y3btMQJrfAG5sDHpm9i/gboppmO2UAsGvGVbl404FTEgmuJ4q hP9A== X-Forwarded-Encrypted: i=1; AL+hErHtULBwE2e9ViXc08BWiIjXxyT+2sfh9Nu0hlVgytBQtSf3FqspsOAgiwU7BLg6WwKp9+ytJRXV2sM=@vger.kernel.org X-Gm-Message-State: APuU4Z+4LwCa/G4Cjqb4BDlysA++AbvSdGh/7KUkuJF5xWNDisx+DCWl E5ZaEM/uEQeh7YfoAKLn1wC3UUd9IQBmXtA617xviSL6stUqxMmVriF7+y8rPxJnsnY= X-Gm-Gg: AZFdTZcxX+RmmipnIuYFjqzJhtHaOAJe/tTmiArEMggwnkcCCL0pHTkTolxsRoWBGcu Z5UmY/N7xgVvagmKt/IIJhVU1QXNQgrGwKXj0tJTxovBhXOcruTJMtaesm1Pw46iapbI1dMuxOw 7uGgjsZWBANV/QRq6ac9TJm0wJDeh/KALN/8QzCjJrirHUgrxvecIsuQP8X/1coCeTuDnXTrBkJ 4vaCDg2L7N28RJqVDlzR8u5ciQNgmY1RqXBlbGlEVSYgtTGDLJeTf8NycSos5rYvgxJc45Af9Dg xBDd7wzSYNRWGDWbHKKGhO0Vj36zOgnjvpGk0fItrfIskzOOcKGxnn5rN2oK2gHmytn5kVY6elq z//xmu7S0tJGDf+giywqhKpWI7WCuaZ3raYEIOywIFLsaFVo6pt/OrnMFhYOVfw0p65tXlkJile 20SkJmN4lTaQWiaCTz83zakP8f1ZjO13DkI9XQJtq+YVP7ZfEfGB79mXEjmxyhDIt3FUMMcyh5G eIzxL/8qNuNnmfBmT/L/MtYF9DGXxN//f7/Or5qk/ZsWKOaTFA7OB84x+koQP3ItRBlaKIoFfFu b1W5KNLYFxQk/Ss5zCdU8HjOMtuviIMqv7Zw 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: linux-doc@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