From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.51 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796307156; b=ogOQpUTpQtnKwD4osiduZhMbW2k/ATqI0Dp27fMEnGkQmtGg+/feTZZxl+NotRdsal/v odIH2/WymYKn05vc9kRrKe4HiVD9PG+L6cD/XRzxSeP82b6WZh72XuymhCF+iT/Py4niV roUCcaJDt5zA5SQ+kFJhzXp0W7CrJun56q16LmgF91bxc6T9qqswGPXa5FeIE/DqOGnTN bKvn6PNY2fnKKTajhRAoNIgLr9xEJcPq2Nu1/xX+svtdoUtI9hLazIbcREr/cR9wLgRSa 3S73J/ibwYs/NZmS68Ox8yiv2njnD7Fbs2TBC19SLpcOgZ+LNEkBfWfcmUeOR1JAUjQ== 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-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=e/CRhLgrRq3KJKnIUnN7ZaimjMTYAz7O/SU+rOUx1AgSOf8ushz9mdb2a5+UxQLtuW7Y LAdY53dUWfvAtYm4QNIk1UmE+6r1Hgdz5LtHyjiQ/h4Axq+UYOezdREKJU/8LQ/v3SMdN QbjD0+uVcelD6dHg07aOcoVY90qtRFGllosqEH2TGPFYq1krw6B/BYNx9PMZW8ygrJX+U /B3gL7DJeOHliNi8dGGnos8svW0Galr2oj1pOdMrTotGfksNvng7itQWRH4qChHV/JXFk y+fHntudwH+lRNTg03J0D2B3NAotunRm1kSYLTjfS8wjdhIWn9QyxTuIi7IiWkTLWoA== 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=WubMNnF7; arc=none smtp.remote-ip=209.85.208.51 Received: from mail-ed1-f51.google.com (mail-ed1-f51.google.com [209.85.208.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 00119606A322 for ; Thu, 3 Dec 2026 14:12:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 00119606A322 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=WubMNnF7 Received: by mail-ed1-f51.google.com with SMTP id 4fb4d7f45d1cf-6bc4867022dso3516626a12.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=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=N+tIWqgtXfpzdTZ+fmLiADU5LYkq6uKctpA8Dz4r7Ko=; b=WubMNnF7L+b90bYNJY84rh7eg9bTGYkrk9ui7U7uPiVYz5n0pVulO3eVqmjgSs0chW CK4E95aB/kyP8vKXTs2BNQQzJ12cCPk48Kn/5RtfezXKH5IBiww1Kz7L7SrpDZs9b/lF vaUjunPgwn+aCGkkcTBbOl7g2SgwfFg63aZssGDce2EWVezQHYsXGkHMJ4WnysnAgSCI A3yGsfaCBSRTUZN/SK3VPMGPSpkA5bfM5eD7osfLnWh5UGlrcasm2a20APPeWuaT2UPT ws/oBG+HufLnSRf3rZ/d8vrUa4AXglc9xTfo8J6biKKe2+cTpWM4Y43jjQo2TzXSMrCo BWTw== 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=gY2HgjLRxAXCis0JxfiAElRe+LojsB8/PbBQ13DOLIcKjyM89lgVEM3LtI05ZSadN/ tQr0y5gTS4R2aPlaVtdkdfzkNH3Gu7mFRtaSHRpsfDb1q8WSUdpNOYSsgWxvV0ADF2EH W+lNY2yzXQxVzBLM3sVR5u56xB8kfkONKbR+zZugJyciK87VmXABLjQ+WN6tIr+dkuAX 4U6sRFrjJMtDXKAByzNYDilP8S9vySsqh4+mlOt5Aa1wDTK+hZyIfKNahk7dAC3GMZIG 4TK2im9xYgd4nLWyAMKN3asyazZelDexqvYeXtbPNj8GDjdZ/a3Yu8uaSKkJTKiF1ClS ELKQ== X-Gm-Message-State: APuU4Z8HcQ/SMw+vIq34EQzl+JeFtd82RDGOgWEzbOkyZJAPhdS76jxk aipVBMIBSbk2Zmowjy+XE1CxLmZEyrsNtV5ge2cBt1mL5B6GfBsvuFJDLAN9kTp5qAg= X-Gm-Gg: AZFdTZe0fbBR9k1JZYofl2Cf5u9rqMpzCHlo40QGHSqDcMGgQcHcaEQQFjfJV/Q93SY sYoTt1VNVGZRDKGhixVIejj56fIHBhNX8g8uj1N5hCodykJCyPnWH4MI/I584ieaYAsAhZQ9mSL k/gXUML8H4YB4yAd4bHOBEc+esxOpzEmG0w+Wysq+8dUWu0kkmfc4JbmegFQlcfGQ90uMP30Ab3 YP7a8okOAbkA/MfPux/sVfA9/s3WDMNcjHjbCtmwlmMMfZoFaE5BtAE74KNIM/RNdEGeuXNpK+v rLSmnyyAsK4yWY/te4ku9ikwQYY3Vj83ZhS/xnuac5Dk5O01n2cEiQJT1KHRmmdXLBgmm+KsHzn 3nOosIFqXiT6/97irzr4FUJTlzd2Xw+reYIQO4Z/NsiB418f9VukxEjTUncR67PuXG8pe6fyTWK oe8/SfVIWLtoM6QgYnhpIrDJ3g85SjEwtYj1NANCaRWiEjgIZhhaSdvIA6yIvAzdQYykXQnX+WH XYEUj3YZbk2YkPr1KKGDvAcNIcdwTfjInTDWyviZRAEZgzaWffCLl9NTi7mfEZB2Rv6pyam3I5G zdOO0nx+IcBRpuCRFVaMttgMu2CD4h4n7UA4RQY= 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-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: <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