From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.43 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307156; b=vTDna/ecDUg0/NgeiQNhNEtEWogGpPLoVKerwsPLh/De+42X1ZQmLUI7ca6FbmlD14Ic 995dI7yQN6/m8FLfgffUjotRhW+bCD8IreEA4g0HWeQx5KrE6c8vICkK24aAj9efkPBUn 1ev8ICYFgALo6n1Q3I12Y6HOJkiO3mcaiJHG4RFlsLO7eufiiwGg9piNM6HwYmRyAJUF8 DbrFNvIx2jycFnVg/JTt226+DfndsALJhzG58TD04x/9aR2S5qSKuLSZtjVhwjIEbHzAj muiNz9qq0HYTI0OHMXWpnx1Z16DZ56uQqgtx+jUINcQ/onOqdxfdIjOxmmakRBK3mZg== 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=B6C+UhcbEKsi+3psSt5UpImk7RqkxeGGLnTVs6mX8unDNGxf5cMp9TCMIpr1fOnK0IOd gxY9uOTG//9/iTNJvDYkY0CXY6qVbh8FzvsnYlvclM4Q8QHBr8GXnJ8PmXfI7DmptmBxM YHWTnkOBZezdTnOqDotUf7AWHgb76N6HOz8AQQxOsLzuF2TziCkL0zk6+loM83OlYGYQy Od6E93wxTmCpvtYA/MWlRSjNsKCkOrG/1EFIx6R9qpnce241jDgv7aFMe0qYIVws/87/n tI4mdSL5D7EeAdzLDhkV3s8bFBOtm2qxXFOb/afDT/u7dR/fVQtN6g/oI4k/9moXI8w== 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.43 Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (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 05A89606A330 for ; Thu, 3 Dec 2026 14:12:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 05A89606A330 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-f43.google.com with SMTP id 4fb4d7f45d1cf-6b8b20b2538so16520123a12.3 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=EsCJ/jgFxiA8jrasF1SswIxA5TW7gh8BN3Fub6EeXR5399z/VjjqXVIy/NQ12fwwkt i4sEomu0uL1twQgX1OKXdSG70/phe6HL267r+4SfPxGIuHnWZmIPNs/Fkbkao2rWiwQH 82e6FM/D6NXVxHogsjaaT/bOWNyasoAqpBexIGzbaO2eV/aGZMEh//uBPNY8fMw1814k LxjYRRu5V2z1ZE/X0vqXV0OUvbiMGWXM4fxQt94095oAK7JUIYgyJ7Nh5aH5uWtj5uFm IjPz4eB82D7CgWJHhlpriEOKv/TgXtz60IK6fneo0a5PoSEBKLEtspYK/cUP2m+1ZucP fwTg== X-Forwarded-Encrypted: i=1; AL+hErFvlbMBLYtHuE2AmP0PJruZU8Vpxr+nZrKh8OlVSOeEVk0Vv7RskiPN3dPDf8Qe5g01fkmP4JzRCCmLpPk=@vger.kernel.org X-Gm-Message-State: APuU4Z/ZCkRAEoIwBWEaB3irr/XsLKfd7PtnxvXgrNut0QyiDBtGMoea 8i1EPjxkYzPpQSw9xvjabRvgyT7A+QS9y2/hWqxN+v+3hiVG56UIX7+6gsqbGlduG00= X-Gm-Gg: AZFdTZcCn67IhbMNi8yejkYpScHUVCqC7AhzT1TIJTVMxlvc3IBd4qBpcORDGha49A8 WMtgXQYQM5NgjJFSlpoV1SWLpMFxFoR4nUyqwISOr+guAP+RJjWckQjsBuH9T1PSYGkxTYVhAK4 GWq/gE41fQoA4E/ECFOQApCY/DqwlG50yfycvrtScWBPR2tZd8JBQ0eHdzEA0nd5oxONWfzkFWy flQg2cVofY8Ia1wBl3S0fCAXtkf8ExC57yKc613yz/4Vv5QA+tCipxz5BJCacXWGz3XqWeY4BBq 7SMZF+dxwcU338ysN4Y8GEBrX16ws2nQg9LdnqZoGZkdKhWgciHCZyuYC4zesbgw/MUwqoCYGO7 Nlmet9C6LTM7BKq00w/O1z57Qbq62TLuOvmbtkm7nysqn0getMa2OwpxXrzN03P+3SxQwVrroBO yq7pQPbcjw3kqL8F+3ugYZgZbjI+hxfrDVOjfO0BVOOptm+GfCBhIgsJFVvFPjMr23JrdAPGgWQ SElIYnQo8Fwg9qQ61Zggy/TxdjhRUopEOyyyeiC3p1CMWfq+ND41KJvvs5HYqKrPCiZhRD/eUvY MLE97FpMyHjhm70OYcSW9e8laPPUPpfs4CHYLLI= 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-kernel@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