From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.172 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796293011; b=VJB0p5c1ekIYBJwyQjbfKfhqz1AqyBdOq5KS6sNeVC8PryDwlsYT0Jncz5yua/s/P/ra gw7yT1CpTPWydiI/9n7qalY8d0C+aLDH3GkpvSWo+VW+CkUn7d+SVNw74QEAGzVQKiTFK ZUDxJYdISAm4xGicAmqlxtuKzU0KrZQuiMErsjJIYs5wKulEI7WGArq6ZGFHuPD0nO5s2 vn8Xd0AATAdhl0Qowzi7l7mSuSuAGwMHD7HN8IEK9OTLdkI0NMzJJE0KofIsRCFb32usi 3t7vYeV8Sw4rc8K7pFW05DTLuCsQBbX8Lrx2R1PZCcGEAgo/y1W9yStuo/OPbEO2RbA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796293011; 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=8HlKEd8UezWrLzc2Sk73uiuOIPvLocHOQarr9+PQKeg=; b=WV28d9tIcQ6C4b5+pUGQaCJ6DvesRbuUarguddkP+aQUYUgQeL/kvrQmDzBk+lUg+X4O u2cd7R4kAit8MUWMo3x6UlNQavnbQtgM7jFHYCUagd5ouROErGNvCfE0fgXhZQ4wfBgwb s7TfMw6wVH9Ekri9JqpNWlswF1l01/xNAzOxH4TDkZxhvh6tVjL0xxDk7c4WZLFxjWolx QaDL/X0+R0nFwL0aQNDyV/nBIDjUreYiiI9hQXm75r+7NLLAmuv53wPde41AcBGQqx/C1 32I42dSSNvzcV5NN03k+uQuSkkvyUjYNM7nfoyCtvBPuzzr9yBvvbLJSmGkF4Xe4xqA== 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=m2ijdB3U; arc=none smtp.remote-ip=209.85.208.172 Received: from mail-lj1-f172.google.com (mail-lj1-f172.google.com [209.85.208.172]) (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 B7981606A32F for ; Thu, 3 Dec 2026 10:16:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B7981606A32F 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=m2ijdB3U Received: by mail-lj1-f172.google.com with SMTP id 38308e7fff4ca-3afdc36f3abso24786891fa.0 for ; Thu, 03 Dec 2026 02:16:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli.us; s=google; t=1796293009; x=1796897809; 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=8HlKEd8UezWrLzc2Sk73uiuOIPvLocHOQarr9+PQKeg=; b=m2ijdB3Uvwv0CPGb5gsjSVztcaijvE925876SRE/e3iqAidC4WhpXzHmBHTA0bwt2p iwSDA3HTiRKPUa/149pTwNTyGHdBbBc51GulSTWBUAMlrON7FawGeimTF5gVlAFxNhI3 h6n7UVUhBRpGpNSKm/ZUq5UJxPkOGcAcL9VdfTcialJDjMW3obHN8RVkg0I3ILL5dGp0 NRU9rGdvTttF6RBnguDvVbYJ7kyX8XPNeMZQOYy+i6s1hZZl9z6hWo4TWinUD1ZpaesN 4xkRYTEKs+RvDM6a/V9kZiHX7asnmAYnRsX9Jxct3MRzB0O+0MYC6CbE5ZkdVIDKRTKN BX7w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796293009; x=1796897809; 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=8HlKEd8UezWrLzc2Sk73uiuOIPvLocHOQarr9+PQKeg=; b=0tdlYdd2RpjH2LyQIJmi238Zb4OzeY77hGzRAi1ycCurS3r4APvPgTIFxfvNczg95s CbYiygmbO4LjSHVbn2IxWnYYioiv1HFM+64e7T7TqSNoJDbznNzirVGS75zw6iGcpqd9 T/CvF5b/8FijtCZGFWTJmRVNvT+6AIgywW9baN1sXBJfMs8BjBAzi7ikX6j55wfShuYn YCpr2YzeGtzA3zQr/OTys5JQSCU5c9DZ50GWZguWwCbns6DtmA+QT6H5cu1Mub6EqtaI Wa/0Sx0hC8OKSv9DjvwpKnLK9NV+aa+43gYE44lkgxbR2SvW2pxUMBH1/THqC3yAG4AG iFxQ== X-Gm-Message-State: APuU4Z9JN3Nfazm5Niaai5HGrqm4/IhVj0aYAFvndMwosjlSyqWKJHL7 iqWclubZoptDhFqS0dTEi3pvTzNRj2MwkBZUxjsCQKtma7z1g/HA05wox0mnAYMHto4= X-Gm-Gg: AZFdTZdbo0SKmjAjIDvgwa7DyO2LDPYTcyFqw3bXXIPJpUeOXuKFzz4b5hiL9W0w+XK UOOZdmBlNU1wQva/iKIt3HH8RIhsjCV15X3gwKTVWAWxyxoFvAW3qOI/nrtZnDNeADpA0NlqLzC IU0l8rNtGwSoThNAt3t+pxcphejmwpY2D7vuOa9XhIBcTqybHDAVtTsOUeShz2Ros4oWMsew8XJ JF2zuxn5VQIoojcW2rSjxA5hl/LRxbYPqbN6bu0YqMNHWXWWT2wzsGiwBjfUg9ySIzi1E2Y1m15 y6tWB2VcPOzXpHRZyMkEz8yXCcTd2Ya7G48bY4owcLc0d9c8ifGNXmnhNG9uEkWCt4KR828o3L7 v/utGqsdHcCQ+B+j48xxcRnMPGRNgFQFWj6RLMsE9fa9Pwvdn3/j0xlMwuNUnM6xDFmQo39UhvY dg7tLN7ixAoXb04rwJi1sS3Drlv4EzcXzqb62rBRoiFq4zYPquH49rRx+HtYmVFmM1djo3NgnZi P5wdF4WDlH7krLbf71nQJOfFu5Ao9h1ep74xiL4PWmFU/DKAzY8+DErBWkhKt2ESfpUw/RgDmjB fNdBYhANdaP23Ypg2sHiwhirzO+V02hFrTdXw7VO4794K3hxBvCQvzEKgBTV X-Received: by 2002:a05:6512:401b:b0:5c3:384d:e2c4 with SMTP id 2adb3069b0e04-5c3384de3cfmr7489346e87.61.1796293008530; Thu, 03 Dec 2026 02:16:48 -0800 (PST) Received: from localhost ([140.209.217.212]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-5c1bd0176fcsm10252573e87.34.2026.12.03.02.16.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 03 Dec 2026 02:16:48 -0800 (PST) Date: Thu, 3 Dec 2026 11:16:43 +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> 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: <20261130203738.GC114472@nvidia.com> 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=/: The device is named either by a family of its chain, or by the bus and name of its parent device; the "/" tells the two apart. Exactly one device has to match. is what follows the last ":". It is either the name mr-get lists for the MR, or the alias "ima_default", which stands for the MR the provider marks as the one for IMA. The MR has to be extendable. Examples for a TDX guest, whose MRs are mrtd and rtmr0 to rtmr3: ima_attestation=ctlv-attestation-tdx:rtmr2 ima_attestation=ctlv-attestation-tdx:ima_default ima_attestation=misc/tdx_guest:rtmr2 A device whose parent is a PCI function, and any attestation device on a machine that has only one: ima_attestation=pci/0000:00:01.0:rtmr2 ima_attestation=ctlv-attestation:ima_default MR names are unique on a device, contain no ":", and do not depend on the order in which a provider lists its MRs, so rtmr2 is RTMR2 on every TDX guest.