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=zbkgXiE0rx5VYqB1vLwLA/YpZONABE9PBKVXAadxHCYLJFcJ1iFy7VvHsEAuM5QdBtCO Isbkrin9P+lmm+9kjjsFlidfdeLMMshcnFfaxP+4xEzzk9kpMjKRikcx7owLp5btxmrxa ADQIYw/AuZ3HkMQM94qeqQnGFZgkPBOxp/wgTbjzM0//etnrn/hURisaoMyF5qaMZdSEJ ENO5q/3t4KWPH+xEz6ecT17zYd/lkkbaADYGAZEIT/BY5IYGDu5FxsVTJkb1lwc0egLpR rfOHhhtqDQANbvKQUaiuo8gOD4yWDXzm2y5c27c93+vavHGXTk2hxda7IyPapO+8UeA== 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=rd+kQmhvT/pPh/htbClA5AUy411OR7P6hkMtotFj/Mk9PKEl7G3p1fQJg7XTxfvpBy2D Nmes3EGm3Zcqu6xJO2krdFfgY4lUlnFzf2PDlz3DNXxZZJIjSz8XIh7sqTtf4JLeWp6PY AsMA0f11twRHBTZxgkxXoJT41NBG6DTaAazQmh69MwccVDA7xKRKo88yXoksKgVwdT4Ui elNYLegeQ6IJQ3XOvSInVSAeHyL2NK3Ahx2dv2iJJqkLVnUvvy5AEv+SkiryIKAdgZd7r B9rnaRKGQ5ScR4zJFVXC2cbE2JgR5+7jcqyQIefIJL29UN1VP9aLChDUR3odQYnNQxw== 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="mrNrrVe/"; 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 54C67606A325 for ; Tue, 1 Dec 2026 14:32:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 54C67606A325 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=mrNrrVe/ Received: by mail-wm1-f51.google.com with SMTP id 5b1f17b1804b1-4bba60271d7so58591885e9.2 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=lists.linux.dev; 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=mrNrrVe/j6Dkghpb5GRz9kSaljx2qCMRnJcjXSFhakmpF7dPMlzqBstXYzxvgutnre WEZ+KWZssQ/SZ8soT/y9sATF4PUSnx/hVlr7oTg9opTMEkZRYenFVEVmEUxjbZf2Hz66 qOLNp+C+FXwo3Kc7dlYqKR6bjv/8RexqVQ0yDhTFrG6ahoezEmmYISTey0xzj4ZrLp1O Ue2ZUQ7Ro9hbVGVf4hUNsq07jwiArhYervZ5NTrxP0Qgr26LI/sQln8g5ddyca5BDC3/ aGZasF2rF6q5EU0xj12fi7Q9rYft3DYbYaeakTir+7y5WxRGMAgjD650UPOyJi7nUciw Mduw== 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=KHbV5Jrs/j4MTYhSXTb8hvlJBGhDsxIRPEsZVSCCRYsDxZGXDI/1WPtDaVfG1IhAGn 2nokzg3uON4KqXxoCSfomoHXH9Isg4Wzt1rgj6pCNO5HWWJw0vyam+yUXka8fkYN4IFa 0WcH9E3KJpeMaWdI9RCZJmLlo7DHH6DnkYkWuQLAnXPYbWID2AHcLSmpi/ej1xwsk72S +ZzXtoDxodJwqLi4/k/5AejHn1X/PZm9zPQjGTVIIvGlON2nctgFYRfP2i7pv3EsRhvw A/XupcOq0/o8y2N5jpI4WeOilPFAWh7WJLe3bClY0vs6msRfj5fHrTBgKjdWUdKC+EDG fzFA== X-Forwarded-Encrypted: i=1; AL+hErFsKWqGeTLVA5fUCl+Of7+Mi0VvN5OAmKOo5eQENwc0Lhgb6INO4oefRRAboG7Cqi92dJl/AQaueMWx@lists.linux.dev X-Gm-Message-State: APuU4Z+tUE/0IjSZbsYdTl7kJdEmyUZKeHrdlwxif+l2e4Ii4bWvB4BL /s9UEd4YbXjIIEtlVzsSOhSyFHmvWALQ9NM7cB5LFL+A+Mmsh90p+XklPnrYHyrKeWs= X-Gm-Gg: AZFdTZfsyvmo8IJsDi+vzXB2xGzjLSfiZJSIGzLiRH3nZj6tqdP19yta3NGIPkkNkOf bXYuOv47tAK05W0faTgjJspj83oK8vXEUetoJ0/cbuNQw3HooPCMkOPKyJmfX1/ZDoRc5FTiKky VZmopucl1W1+tKnjN/ZRDtact5LHszHKjQif6H2TRLLa1G7iR1tSnaQ/mOlYc5qtpziOBh7mK9R gTHSuQbLEY4VHA28lvEjfc93V2uTRKmubE86mvMVWYT4LEfN8ujoq9Rop/uDHZtRgk4LUzPoXKG 7DMcVBWkrUU9t9w4nDRXsNTOAVLH44b9LBLV3HnSxAn7ZH06cdmgkjzejphXwGvgCHtdJyyIQN5 Gv8vV/FJgmRMcQpZ4jNEKjiO9iD2QsS4b1jw22jxThczmlCIvDp1/74HGlDw6r8N2jg358WOeS4 Gj6wMoEvSUKhMvYQ9/Foz04uXjMNdkZTkytSD4648/r7n/AyhBcp3eX4WtS9oeuuQuhHlXhBmqO 74WCj1L+8AA5sQwVPK0s+7SHW+0cLirxH2kEGjOk6UdCCkuAGJ3Qf7gd0Ev0uF6H3bffZXuDvZl hQAhpGe46PovO6EO42u+6iw5shbcN719nGhE 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-coco@lists.linux.dev 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