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=36/c8mfXhDu8f0dseLMj8yerBSVEGMZOUPV022KdTryisc9NdIvmz/jexIRtWcdwvlUQ MqdX8pRn6ME3tqas/33L0AS2iE/36zzXeCdOs9jITVcQAZFctOheOQ5XZH59PZ6LaOKXZ 212NG60omHYPM0RilLQOBgwFU5ekp03CUiaW0BZ8komvGoxerM4+FAfDALqUwnEEqCjLq ztTR/xBqtI4C0vjN2hrK/JFyit3opG8g/2iugHjr90Z/MFhYLxx+xxArm/qnCfpOh171J cKWZfTbTeVQAMlayxuz8MNj2nDSb/oqtnMRySD+oxqrFHScPgtt8VqoDzEtyJMMUxMQ== 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=iwvhWnpv8YW5EF5NtF/x7tw7SoitQN6jUByYhylP67ZoqkDc/hmDeALjHCbVLatlDCg7 GzIDwkVH+e4NXf8orZnACrjQ1zbA9WiKkhma6/Cj+kNj/dNqw8CZk2hsdovYJCOuEQpEE q65Y1G6A4rtJDhzK9XnmEDgDm4I9g6LNR1rrUEBNfByPsqoNS3rxPN29WlQScnkQn6Sr1 tq0AXPX00IuNRLHM7nmIsWEwYG7wgDgL2qRLqs61eEs8BRknCeokTqeOcFFEyFKssJLFj wkxhtQDRfRg3sMe5lXmRoEdcnDws83HI/lVbjERo64Y4lsuJYSKgxjd63BcOPJg4y5w== 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 025F1606A32F for ; Thu, 3 Dec 2026 14:12:34 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 025F1606A32F 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-f44.google.com with SMTP id 4fb4d7f45d1cf-6ba12b00c76so14568268a12.0 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=Js3z+Q21tP0Sd1HHiH+6Ap1ELMiEJR2sIzU3U3KXHGYOzb99+pZRGFuKE8l71Wf4rQ XH/ShKA1TU/KSTw2xVuMDnAEw3n72E7yFGW46aqCHZ2udAVGAen4CUDqg7P/4xgF/DBl Mtfp6P2gOWYLbyJNLJGWAfct1YEE+P41cz0zfqUke4HvFi8xsMtOl5pzx8lFpWAM4aMX DpZNedM63QgAtqBxOVuwaEDPAIQH5gMDEsE4yNs+cPxh8gK8lV8UsvqjXFf39PEIaZnn 9XdQV5FMwxBMEpn8nrVm4ykzymklsh6FNU68CpwvoGBZs653eKNbp2d5c0Q9ROjvrBlO l42A== X-Forwarded-Encrypted: i=1; AL+hErH9VzVo3pUIYMJ4z0IEpvOeBdDJLwihftcc/B3nTuXo8/SiIeNLWB6cRCO44yR5vzL6C4Q=@vger.kernel.org X-Gm-Message-State: APuU4Z/NoKXCFwjxVk2JeelUXmXWDFGfV/B6PQV8Fq+SuTZVSl06RNf+ 84XizdqNTd040OzKM0/tuhd+5M7TMJ83zbhg00Fncm8CitEsoqr0U4FI1Ux9wYxgE4o= X-Gm-Gg: AZFdTZf1CB8nsq9rbF3NE9sbvEYI18YKI8xLFopoBDvydO8JQJzbjdRCoxH1yzHvY71 B2XWa45A1GWyiq2Y73dw1jgWM7r0ZzK3HRZKEGGKZQjiDlQsvH2ItXe8qHKYtD7kg7FBFpM54Hj BJ3Z4xI4365hVyLmnunys9pEC4HiQlOL4ESEgZoBszZsfg4OTmcM3Gwic8CTOZ44r9WiBRhZggL Z02n20alFoPlvsnPo2ZJoo00Ep5UWzUa4wTmmqnKY8xnGkU4y7XTqDvm0tgQHZgcSqSPWQFl+x/ VvzdgEhR+s9sIxN4zCIh33DyDj58rffFAGhapcySqF379SuWxWkyZTsU4sH4jwfpFcfu0bHsjsV dlP6o+n89HqhdbsuKYN5psajfMwQMw4UZbPidzR4nqgffvmiRT2JRQLX3HZ7JY2L+E+rDxdAkxc Zzhj2wSrxhTubVYC2o99RAwd7/1T68CK0rtt/f3BdCr8jrZrTj+xid2WypIePxRVbKmbAhvEjKy hJasuzDD+Hu7N/jhnqadXgm6remNIqyzPqUI94NWaM/pUfHeiX2iKqBz6uaQVrRnCDtzAhQofMv P7zw4PLr2Q1UtMQ5X0Uzm5ixs9AOCsh8WVEPmQw= 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: kvm@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