From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135558; b=CWnblO9Ek6QGO6LSDdAVTZTRILccNTOH+QE7+EmWJReHtyn3PBkkahWNBeHfT5B9pH5u BhhCmkloKOAQyzCEDtQ5HF+wxX+Ka2FJON4CzvhZDxhMqjGkR9xpF5xd694wtY0pz5ByH dLZ9FjHCFCi7vNMJrXFNJh4sRwkJN6umeMSL6QPfTCGxYVUw/XqUIU90wXzhM+ZnTzJoA M6saNy4BCirWyPtAJMH5BTnZycwzLZVnCIDZV2EcnELNvC9g5boGdA0rZ5KeUbJfJeyEf n4IXjjDXGYS0TzjdukpBdlA5YkNrAjKDExQHT1l0LXzYyeFsWN4scBR1JucQsEkCq3g== 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=E7V8OH3qTcKLWHr8Ze0tW9kO4J9g0fIQCk+lZPsILSUJk9Y14Ck8I1eySltPNF3+DT6g uQ2DIx1WNncq0gjf+672DZz9G9WtvrrEPCU2EPUb3xS9B9dLpX6LCO/e0IsiB9+ar/YoM dcrFET9DkvP9j2eI2R+6j2kyaZLzkErBDxxJGkAmg20j6No2H+3VvPuQ2SzRZeZszG9Yz N2XuyKvNHPv0uBKJAaCQn0qVpy9/b6B2BR0/M7dUWRgNPgR6AonQ6oE0Doji58C4xCGdM dB3ZiEFzAfGaXLzOndF/DS5PJsijQeC0pXj2gbVJXGQZHdxVjn337u7TXL5g9O5hy7g== 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.51 Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) (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 54D44606A327 for ; Tue, 1 Dec 2026 14:32:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 54D44606A327 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-f51.google.com with SMTP id 5b1f17b1804b1-4a2d6d01ecbso62913695e9.0 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=iC0wVPIT/Zk1nXRBYbJVdS1c18pU/c224ej0z8kIDTCcNCNrKFkLAK7XhI7FrUXnlB JE21VMJjzWECKO3gtF6Vlo2hQzQQeKOrTpWKqzNPD9wwrVqhdUhLmmjyg2uPKftCsG31 guZb/bam3JaDEXoRr6fYGKebRy7XJc02vJmauJsF1psKHBvYK6rkSPyBnrRdho1Y+cjw iVAzwORXDx2kH4S3xQQ59t2ePiceJeEuAbUfPQrasfJbAGIhtkawsLS0ibJFXxvutkE6 5IbB+i36QYwUrx/BxPcswgKDmuGHILmXLDlKMDsL1E1/wEySXWPig+dn3P0PhKMd5D1B 1VJw== X-Forwarded-Encrypted: i=1; AL+hErHg1dlqG1PotIaiEHtTFNWZ1/Q2okXas5qSk62RXDSJEKaYZBiENSjY62BsUU0Emkywfpp9uEWRqdlS1igo0aw=@vger.kernel.org X-Gm-Message-State: APuU4Z8GY2xFo/MVTFronAcmpqR9xkdcALlANf6dWdsGLlRQzGCT6C9R L/qvSe6cZz+jcQVmQe9LQFIc9iN7FCz2VpVIwBLVRx9cT8oN0TMvsRJI6q0qbltYrZ4= X-Gm-Gg: AZFdTZdbNeLhsh8/EF+cpUUrk4P4u6u8yHRKftcVKhXhmaQj7UmelK7XGN46PPoFfpH 3t5xN/MwcVjYB1XylFxJcZOed0Y9KrPNXZl4Jby35qQNq9S+6o3137It3G7PfC1uzxIL872Pazh BFQ3peewGrjYYcAzDCVnOU47qMXT7xC6oTwYJ+o0zK8eEire17dyeoDlTjwtDeF4eu0sfkbyETJ OTGY/RQt1i5nlk8uL9jLej/Fcx5wVXuVjGlLwJQT4Z0VugxK21qPaUs49x6rqS3AZ/q9tLDwxrf lNQr0i9Qe8mHQ6IsENGqQSjrX/ugfmzJfZPaKTlgsnQsOuow79FgxxT7UbwGqmIIzI2dbg/pxOz PIqrLE4DzVOVqgmdSFCLqKdfh9/qvr/XvtSotZv01qoAqBln3Ktxsym9jQUHSRqL1ierkIfIbg7 +0Pw8QhfDtxaJKZvytfF5j2FyWB+SZMB/wWxM/q71N+s9ixdRs2h5Uht7J6PRvnwYwtm+gQnKXE PMz8Wao2ErO8V3zuVMY8pisYBUW0X3xUMcFkPPl7eYMEEWQ6Ge7BGL3SsmXLJZoWYHJunXY+I6I CYd+FHPccB1SP+2ThJWR8G7Fx0OfZsZMs2/E 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-kselftest@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