From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.44 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307156; b=GGOYVSsEn4HnyYHK6bdg9wDgDKJS6qxgo9q288UhfXjKGCh7nUlcJ19bAKrbN3SZoYUU uE0vrIUe3E5JhUKGw4oHhZUqaYuC02arOBP+WHyK6ucYSh1SQSOmV4AhZIjdSbauJvr43 3TRQRFPyFa9zRgJBfbfMiQYI82S1gJZkayH0PhiSIzDwWUzQc5xaeC1WDR/EAqLmUkXQC p8lTFYJf1A+nD4bL+wcqF0j8vACdnpww110kwvBkoqgOeBsIU09usdzaxvxBEq81nu5K9 AdcX9MlHlwqNv/LMHg5ghcunv8dISyNPi3k4USNQ3HLvx5EoHZWOpkMNwJKAUlWtaYA== 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=L/mupDN9RO8St8wMvnYkJBtdanOlWfdnnEVzb97SMTnHSO42O+TBUzze06gvKGugCyu+ r20l4cQQbslTPEpLrILungsJEvAYqFEAtZ2/VdnUFoBzhoc+Xgrd3t7zUJ0jX/F1vzAxm pIO1VdDzyFStP53axBUqWIeYIVe2fTsoLYU5BtHd1wKAC5hmgXgBe8nwV63tPhwQZ668i MCU99yJss9oI2rHTKox5Ipmo8NdggXI8qpwAzT4NZa/Zc2xm3+IQRpm2FvuaWM8FAhuRe yosm15UVaIEA7lJ62tz8hPbs4ryscRaCRzpAI2dwmhhAnXtL4hj53lzHdTsAnmKgz9g== 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.44 Received: from mail-ed1-f44.google.com (mail-ed1-f44.google.com [209.85.208.44]) (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 024B0606A32D for ; Thu, 3 Dec 2026 14:12:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 024B0606A32D 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, unprotected) header.d=resnulli.us header.i=@resnulli.us header.a=rsa-sha256 header.s=google header.b=ZbMtvNcu Received: by mail-ed1-f44.google.com with SMTP id 4fb4d7f45d1cf-6b8b20b2538so16520122a12.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=s1mlqcF46UYI7t/cIyS3wvz+XVhPD5Isao5hTVuNZuqz1xRkEukt5kcALah6id2ZuE tvso+5dlh1UN8Cy4e6p9nRrmUSdmjZgHJ6ogjllUDFnUJ12EXst4rDh9x7xJVtv8KJ3m 3S8Fs+I6kHzBjTNrB+/mJ+we6JB6Lh5uhed0S5/loV3nahXgQiJU4hj/OJKb0akThqns xwZpHKl0lc/7jmqQwAmrSDWAIa5uaOsX4SM7kQHw/isSfzPAKeAt7dCDygeQEBTQ/oGf wSoa4ofOXf2TGBUyPCIIH60cAMRRLnrtAKGY5XDTYfQ/aPx9rT+6hmZKjLMieRYJ5AYL 8CeA== X-Forwarded-Encrypted: i=1; AL+hErGxzCPY+u5xDx1HOGfG9qvlwCWMGCsLzfUYElQz/p+gRXhXWRIIzP4TjDrbt3UQa19q2DlHOvwIMGg=@vger.kernel.org X-Gm-Message-State: APuU4Z/WJH8r1Jn46Sgal5HXLHHT71wryyfvi5RCgRRUBLGLy0BHBQir 62wG3NXexcv6ZuP29CTw1XyLKEVMD17bqdX8tGoWhAOhWkThod9MoZPGl8DHbnuwCaY= X-Gm-Gg: AZFdTZd81dyoV5W6YcqpvB6hwBsEs6oU/LLQlX47k/PC05uXq4416GWVByPBHXUgE3h tWSbvOLlVaPhk207JoLzTLi45AnjXZO45jsTxD+bM1bSYsZVTi1DkH4BeOCW4Wv4X3X5JMl8cIg zUsXh3BAkPg5r2sW23UQtsV8k9+if/oUNU3zv/NCei5Sc8kam7b4tVPG5xzwpd2gQWArXpt/XI7 c9q1YcbFj1Pl8g/jt2mmk9Q9gfAN2Vv71UHHf0TXX5/ujIpMXCjUEONGrGL7YaQLA1WI4+6r7zn GTliZKSYIqDbIa9en3ZSKNcfeRny/s7wMHIi+iVvKs19Q5zN+9E4no/qgMod77DojQsOmjmk9cL KTWQfu/kyAoTg7pBrMP1R0JHUYzIIgjQcaQdWSYsZ8pVUXfgvmZB4uV1AItuIHwFn/bTtRALId/ baUwVBxSCRPqHb+M7OgW4jnjqDMCL6RKAG0Lezxza+km+RnwA8/r2odsT9O8CS4MsN0VwC3uhAS cyE8vnqBWO+ZFQxwWcCIBdjLJ0sL7WhV7/bWGrEIN/2vtgHi/lPPThKlghcbCljWUyo2TcjUtbO EJZoArwITkuXUgL7JNsEqacbJDNuoaC4oMiO9k8= 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-api@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