From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.52 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307156; b=d0nzBbSGPxigJzInWRrtbtFz0pdaZY+FZSSBZgi29uh+N7HAXmIrxt0gfD3R9bKIeD2i h4vgql/bXo/9jhwODJu0KLKtRVilbNNK/+A+TlS8d11oSbhH8A51njvEVa1/yv6G9mMO1 YdfJMhNYMmxLK3sLznrEpUtyHuvJ5sntNYM5dtwqOP9t3geayBHamnsIxKR5dSuA0oaG3 5WnkYKc7SZ+IB0n+7+dkU3EO1hegKq5OWISjgZpbvxCETVqVPoaHESU4I+b+vReOjagD7 +rqUvftoSEMCIBAQVC40ccxmEcFIFPQ4PtG0tcmf4tZXHf3XnzsBw/RrlhaRXCWXroQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796307156; 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=N+tIWqgtXfpzdTZ+fmLiADU5LYkq6uKctpA8Dz4r7Ko=; b=chBjp9btGUJZn1XgTM8HZv4LkRj+aaev4HGgUXGjOCJB4die1ogeTGP7MbWb5ELE5jxe B8hgS7C3VoWwAnVhxfBUX9TxPzjZwPlO+8fpbmjqFtsNz415oQDSWa53o9Pfn2LOZbuQf tnHfSJygwEbf0SS1ysIY0LPPpPrfAMY5u7WRVt/HMaj8h0fjf0C+RYFqtNMe6fjIedzci ct3qUvBO/y+aXSnaBuzOrrkBBlvA7enZGpK7A/rOAQiAYv2h+O16oLvU9oTnS8LTDE0J1 zjsbWiJYYAFpa4AKKkYYqu0Xz4/24IQiXtNFt3xeGE4gaKVoXu0Dq2RJJeFPOxtheUg== 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=ZbMtvNcu; arc=none smtp.remote-ip=209.85.208.52 Received: from mail-ed1-f52.google.com (mail-ed1-f52.google.com [209.85.208.52]) (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 02059606A32C for ; Thu, 3 Dec 2026 14:12:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 02059606A32C 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=ZbMtvNcu Received: by mail-ed1-f52.google.com with SMTP id 4fb4d7f45d1cf-6bc4867022dso3516629a12.1 for ; Thu, 03 Dec 2026 06:12:34 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796307153; x=1796911953; 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=N+tIWqgtXfpzdTZ+fmLiADU5LYkq6uKctpA8Dz4r7Ko=; b=ZbMtvNcuzqg+pBWWvrc+Kx6CsMY42C08D0Do1PMe1VvBny/A92mtQgEbRdcUNkDmmk vECa9cqxt78HKbfWe8gZ8uTx2g8Uh/qJOfrJ8fA7mi7ZJx/44Ek4qMZfWLr90H6JEySq ZU2GVkgZx/M26AxGw7NHY+kESRqw7uSIS1LxwzPv54xh8cBdXVteDtiqhrGMVNIDbuH8 zsKa4yobtGTdRz3prho8Prz5EXPCNL8KEtDgkyW935qQlRGs3kbpkyDjUhHrXOvZfl7X vAKQBnYI1KI9BFnBqFP/jdjecxPPPHIZGUwsVV4oXf2D3ImpzDHcdCwiUxqKsglVr4AV ESIA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796307153; x=1796911953; 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=N+tIWqgtXfpzdTZ+fmLiADU5LYkq6uKctpA8Dz4r7Ko=; b=dEWxk7tDeleUNjaHQ85SgTGWo7sRE+uKyqrs64IP+1uNSyKO+ng0XnPk8WU2rSawbG JXWOG2j3AtA/dTWQohCNybzS3wnIAGsm/0S36X57dhor7dN8eo42EkWtDhX3zijg47pR 19jl7dEK5Ns/Cjab1M3v+hftxHc4JZs8qn4nNIhJd23k3c0/YbPd3SvqIl5UNFFaPAxK m6kyq0wtQYZJfIhCnYQGq9r9pCcKSI15SuBGveB2cNEUjBkq/eg+77K4ku5Jrqlgy8Rb dl1yO/XVfyXzWFtdHfUUb5YJCF02zkyD7r2u/BFUFGgK0NtgxfVMZmERY31W1CyIETlY qExQ== X-Forwarded-Encrypted: i=1; AL+hErH8dT89ulhrkI06eoQ2/D0MBBKeY0tJlvx9RrBJH4FIDTeQVfoCHFoKu8VL52b39Hxmp3ZpnHW7Tq4=@vger.kernel.org X-Gm-Message-State: APuU4Z+WAsZTj07nLGzGz6qNFfAqqEbOTaYYjp3gV1PqdTwyHqMhVYCA vA+QRuZTb7kl4bLQYeVVOo6IUIWsC80zQtOVi/7V8kRrcZKCzCKNc0bGRlBWQtAsVg8= X-Gm-Gg: AZFdTZeUpSQdN3DWBqkNXq3HvIHZmLRLHB0CWIDOjQeNVFpLNGwvGaYk/g7O29hPTW4 7K2yvJXncO8GaWOXaQ0xvzhsEK1ajBG/abNnqTyh3C3Goc+ekJ6rlUiFjlkuZ12DSfPVAzBoyOL E3lg3uskVCpCuPbbV+ZuWLnOvxX4EIRJPKlz/ql3Gj3lwrxfwCZ46STLvQmv1/uCg/G/mGAU2ul xoq1hhtXHkXWVZ3trfYnfEBVi3w1nSW/4uiodUV3SqJK63P3l7v1Ig2oTv/dovZQ1ZenXJ+VqPV l0QpZ1y1p9llGzNdVMxsPPwtVgofog0kksHTdt7dCXlvEdcYIy8D23sObikQndloB5Aa9n5EnZn XgX9JN7BuhXHdEijC549XcJI+YFD3rWiv9vxzrFpFux/gTgYHdau6F/E+9gbdWpUFGk6h0N8ZxC stNbvWnumhdA7xW5OguY0EV8zEFXzf87lRavgCaZKgfMUIEZSNW7p346ONysC1StRemxmKMwZfL elfoCDAyZ6wyW0IEgDz+4erc/VXpzxQz/dDwg48HoDTvLQ7EGwbHhByUNSZO8NaA7+e8HJ1eDdv Qb93+FMFSsmYB2lAqGG+PPgtwZWSdoE5YP6lPZ4= X-Received: by 2002:aa7:d587:0:b0:6b7:a647:c28d with SMTP id 4fb4d7f45d1cf-6ba37eb44b0mr21257497a12.32.1796307152919; Thu, 03 Dec 2026 06:12:32 -0800 (PST) Received: from localhost ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 4fb4d7f45d1cf-6ba370fc020sm17079848a12.25.2026.12.03.06.12.32 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 06:12:32 -0800 (PST) Date: Thu, 3 Dec 2026 15:12:28 +0100 From: Jiri Pirko To: Jason Gunthorpe Cc: linux-coco@lists.linux.dev, linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, x86@kernel.org, kvm@vger.kernel.org, linux-doc@vger.kernel.org, david.quigley@intel.com, lukas@wunner.de, ksinyuk@kernel.org, rodrigo.vivi@intel.com, cedric.xing@intel.com, sameo@meta.com, drdeeglaze@gmail.com, James.Bottomley@hansenpartnership.com, aik@amd.com, jpiotrowski@nvidia.com, qinkun@google.com, pgonda@google.com, jic23@kernel.org, alistair.francis@wdc.com, ankita@nvidia.com, suzuki.poulose@arm.com, kas@kernel.org, rick.p.edgecombe@intel.com, elena.reshetova@intel.com, dave.hansen@linux.intel.com, sathyanarayanan.kuppuswamy@linux.intel.com, peter.fang@intel.com, jarkko@kernel.org, zohar@linux.ibm.com, yeoreum.yun@arm.com, aneesh.kumar@kernel.org, dave.jiang@intel.com, nik.borisov@suse.com, sergii.dmytruk@3mdeb.com Subject: Re: [PATCH RFC v2 3/9] attestation: Prepare provider and instance core Message-ID: References: <20261113160838.2512652-1-jiri@resnulli.us> <20261113160838.2512652-4-jiri@resnulli.us> <179573913907.519186.16798649738277789303.b4-review@b4> <20261130203738.GC114472@nvidia.com> <20261203134344.GJ868208@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: <20261203134344.GJ868208@nvidia.com> Thu, Dec 03, 2026 at 02:43:44PM +0100, jgg@nvidia.com wrote: >On Thu, Dec 03, 2026 at 11:16:43AM +0100, Jiri Pirko wrote: >> Mon, Nov 30, 2026 at 09:37:38PM +0100, jgg@nvidia.com wrote: >> >On Mon, Nov 30, 2026 at 03:19:54PM +0100, Jiri Pirko wrote: >> > >> >> After IMA is work will be posted, I'll look at finding the instance >> >> through the class device instead, so there is one ID and no limit on the >> >> endpoints of a parent. >> > >> >Yeah that makes more sense and more broadly we should have some string >> >based way to identify the ROT for IMA to use, somehow. I don't know >> >what that will look like but it can come in a later series. >> >> For IMA, I have following identification in mind for now: >> >> kernel parameter: >> >> ima_attestation=: >> ima_attestation=/: > >We probably want an option to select a "pcr policy", which defines >both a ROT to host them and the way the PCRs should be assigned in the >system. Overall, in a way that effects all the kernel users and is >visible to userspace too. > >Like tpm-non-drtm and tpm-drtm both specify the ROT and the MR # to >use. Okay. That would be even more abstracted out config. > >Most liekyl bus/dev is not that useful because we probably won't see >two ROTs of the same type in real systems. True. I have it in unlikely case there are multiple devices of the same family and user would still like to pick (like 2 tpm devices). > >In practical cases this would be selecting between FIRME and (firt) >TPM, as an example on ARM systems. > >It probably makes sense to offer a fixed MR option somehow, maybe that >is defining some policy on the command line instead of subsystem by >subsystem, I don't know. > >Jason