From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.128.41 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796135558; b=uQIAfzf85efTq6cgJKZfwKCfyzPkXg0fMiiT/w6h5WQrJZvdXsezJndqbFXfLpPcu4q6 zzEb4tzXXCz4Aqh8bPmNWy1tpg0tBQe2G+SbISCYkf6YYHhikTo+SyzdRovkd5/tiVZ5m z1Bmmt30Dux0ONtgAlaHbD84iEtArKCBx9G7HThRJJWF1Notuym/x4rAelz74kx2m8ain Ao4mh8j+xe89C6eWmc7wT9lUT0vsXrtMOn1DDX7OUKKOQ/1Xi+rQU2L9ZvA8cJLfNveLx vAVXCbLai8hIh9qkV14UzzhkJljWL2ElEiTbpiQBGOr7Dx0Riw/S7GRt6o3g2LXdlSQ== 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=Yy3cxYRFgvXsXPfZrSvV2Ol7MAsmkl37dZNUvhCrs8/tV2owP5kghsFmvPuZie4wmpc+ sDgJXnAXrNxWVx4A+L/p3YvcCayO10c+j/JT2FL45SyNzKDpOqrHZazxDTXjcW4nA0Y0X mmin7n/Cx76pfVI3Uvria82uDel9Aa8D7Rd9OohgaeaT4lauih05frNGIZYjJaJe4+Wdq rizFnLDrPo4kBng46XX0m5Wdad9jvRrkamYbwFKdPWAaT49ULfBMiDIhwvJDAKhnyOGsD O+yqtU3H3M9wVRCtQx2jfZ4+nikyOzbtT9QFg/FiPi5jQm4ce1xN9diOjSjwIQ4/N/Q== 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.41 Received: from mail-wm1-f41.google.com (mail-wm1-f41.google.com [209.85.128.41]) (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 4BF64606A31A for ; Tue, 1 Dec 2026 14:32:36 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 4BF64606A31A 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-f41.google.com with SMTP id 5b1f17b1804b1-4bb85e07aadso145983045e9.1 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=j/IeMab/QmAgnucqIKI5ao/pJ7qDZxBBIyzo8bS8aaKAELg9QF5WsXRa/wg86KT/bZ cJ7jIY3u1o7qlEkJD9MU3artYYIhUkMRHv92rykeLmbiKPcHgX9AH0ZecFIIA8LjYiy+ ekgh9PSKzn2yEpM7+VdhNqZuqfskyCsdZJVgZTt9YuVIMa4NZcB5y1bAK4T+TSJh3sOf k7AhmCKTsLefpJ1GBdkIacX7TIjLc4gjqW/V9hT6r5j38knEY0tnhCLb4oktR9HaCzDl dImkf+c5YmaCrfdtUEhyfUK0SJdjUOR+hPwtkc96YvCX3gfsskRIYVT85u0n4vQ1rWF0 NeZg== X-Forwarded-Encrypted: i=1; AL+hErFkxZpYocvyu7KAbX8Q4ypkywlGLxkyWvto6qAW6J/cudQRzMlwKosxvvnpzdqdzrqDRU2LdWNl@lists.linux.dev X-Gm-Message-State: APuU4Z9iWUUL0SzRWH+Xqpxj1+L9jcLU1YRtW2ZmVoefUEWDEXxka+2s 9bQ5rUSWelZoyIU8QFo2N0uwCD7frQgEtboo9m18AwQ6Oh2n3jRg/47PNXnPISrQpUg= X-Gm-Gg: AZFdTZdei4aqOHBsLbqmycuWOyHxpVsGbu15woCgroXcGGb77Q6LSrOw9BGgTZDgYKB n+HPMqflyZBo3c3Wag3sUGZXJEMRxxczNudFKg0KBeQrnSt6yHMhVCVlojID1tWxfHWe6GxkTMt 8F2OJJK8eY1BfBLldMbC/MF3nEnSQvhAV+QQIzC5Ptk9TfZB219jOMFCaJzD2qfZRQIkT2XNYXw Ifn7J/9cPkR48ofN0m3sbJByYbHCTBwwAvTY+kQDxPRYEKFDDUTAkw5qRI7yeWTHJYgsA5cQcE4 Z53deZ5/v1CEZpOK04U6XT53cQ8jx94ZjEJzQ4p99cueNN+uQhWqWHzWjNBwW0p0t+AIuWD34xw jrWsG0fr2Y7I/Wkpb843nDSpr84iwiws5xYGZ4kM2aNSSuVr+tZbCf5j51NnqcKSzTTC6QW1Q+/ hpC1QBfrak8c8HtNKzcWujNhxOzJb6mMRXaSq7a41N9tdypok5u0IoxpkKnMVxqDcNgGYEYoqLO aQd1HAOdJPwQNVCgEtQkzcbGpZ/74cYSguxd6/PepzP5ejOF7PRlRzR8YHHtLl3DNZ4bHWJ03Yq a6m5G+RHj1tCBS3hA8koKbrGx8M5gXDqsArZ 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: patches@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