From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.208.174 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796293011; b=qvFGfILZgjP14RhbsunOA47nIlnAaxdVkaX2aV8kzCBLDIPVt6+z1hdry/kPqWTmZI1D rqcG17mGF9TV5/EcmiKXLsvjRmonaR4vcuyqxnfS29nVd/HDl9UKCZ95JXrwgKLU4VzGN zjrDlQtlZpv39BShDX2YpxSWxdIQ3QeMBLv71p7HAxOkEFfakF74Mi9saQ19qhOf+/R5/ o+cUbtL/R2MlXjWxfqKJdJnh8MeUUFT3rKpzQnjzGbjyCtc/o8bE8YLZcYxZRjS//Drq2 pOD8nPgL4oeOGR7a1Zyl6BzMTmmhJcL4gNVGTfC+2Zm7OAJNhxZ+IueCQwnlLoPD9qg== 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-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=8HlKEd8UezWrLzc2Sk73uiuOIPvLocHOQarr9+PQKeg=; b=LnD9+HVKE9DKYH00yWD1tx8vqPtlJde1hci0HwhEfyq8nqrfonBkIwn2Y5XhVTqZ4ppL BtlllrMEKpOn8B7DDSCjLCnx2WW6p8ZS3v4WKL8YkMFhkVj1tTUutKnvCHgeaL6q6cHyI /NNBnh5RZokPZ5+cZpG+FV2lhupg0CWyQGu2Q4d/vs3g3wOO7jMxCVripAAiVCmyLbw2s 9Mn3cLh5mQMsKiiG1QJdtWbPsXVkbtzyRkTZulHe4d3v72VG8FYvS9NAxLzSu4jvUM4zs XKEf+LHjCdUY7tFp3Gden3aFW8QJSAM0sDPWr1jt1sPcwa+PERtBQeBWje+/dpksw1w== 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=kdznI+mZ; arc=none smtp.remote-ip=209.85.208.174 Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com [209.85.208.174]) (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 B5CB6606A32D for ; Thu, 3 Dec 2026 10:16:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B5CB6606A32D 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=kdznI+mZ Received: by mail-lj1-f174.google.com with SMTP id 38308e7fff4ca-3ad5529ae64so113954001fa.2 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=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=8HlKEd8UezWrLzc2Sk73uiuOIPvLocHOQarr9+PQKeg=; b=kdznI+mZQgUUsHMykx43ioJjMZQl3a8gBv930WyLX3EGO7GWP04Iwa/WUKRbbg1Rfy 0eZTj5SrXnmq8BPC0Xz4uYxyLTLskzA8EpEhytIsvS0xNg5845qmRC7NKq6GQ3WCZKGz 4jHC1TuXqFn3WeF6UI8u2Fjr9eAXS6lpWXPnibJ18RjSvqeAEvTdUG7rQ4rWl+EXdR6o eIae1mC6x1jpA7ZaB+HvV2GGTOCq2+aN8HitaVqFKrCvtpffZJHj1C9LbYyHNUiYuCMo +QQmzSQmGRQIEWR3Ed8K0r7apapzLiPZMC1KXmYRAO0jczZDb6adn8CpCk2UIwDi7RUL J88Q== 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=ZVXTzGeyBvU17r4yXN/OvaFgNR515dkDiwsGnIPrLGOMJ0yEVzW7TbTaNGZ289e99m eAZUFOcJ2QebQ+wOtZTtEpV1pnK2Blw0FeyzMfrCTx5nue4axnc6/2B7r3Dk6iff5XVh uQeg3YG9nOzVTEubfrPBewfXMFmYZcPxL8NyGBJ3IbEQH+iU2t3ihDI77IX0NSylW2JH vp7EH75UwrsNfneqv7yLdoR7jjdJCyKHbhwutG7AXMHbe7aeuXXg78THjcasHxea9CM1 N/pMfOH23i8f3+0EwZWtl/URYxb7PElaI0q9PVHH+GdkFbVCH9F0rSn2DzSWukeQJFA5 RDvA== X-Forwarded-Encrypted: i=1; AL+hErFfcRjPCk1TYhEi8Tm+BcuOzsTetXnCOKGrqZyTlpnBU0FrfjijfDu+gdCuwfezn3pNwh09ffWMpsI=@vger.kernel.org X-Gm-Message-State: APuU4Z9+tzQ3yaXY2saLLVMh9D4lY7Haus1iDVaByO328Irl5qgo8s3x JSSvfn3PGxjbmhjwE4lQfkVI9S6v+yZO+jeC5h3NpDMM6HaQZZpYZoPYjtgSe05tX7U= X-Gm-Gg: AZFdTZffmc4Q/VPmVZ8O7l8/z/itAvfPHeI2CCuAmUCj9mP1KXRksDpx1gLASPYuFH9 GvqI68m1BFJXMnO1lOkZCygE5GCgpNsY37/8SeTADWT4bYZVHIv/Ay/KHIEdhrezcXUaGUF9Py9 tGyK8kA7qMomwTDr1g+i1nVEWOysgRnBj8w46IVjj7oP0T3zPrhJq9SHthvyouZgszEUh8QCVD2 13A9wG+HDCbuamZ4J5GlLu0H1eVjl6vd43cQeSmyoHMpr2pCdyK73ioMifjuE8u3H5KTi7Rea71 iy3KKnvmaO068djFb8e2aq2aAVtp3o2pkZnBxAqx1T2PoNirzGOp5Vg8R4IT5UnPLS7ye8KZrV9 3n2nY4H2PYc+1FqL2KYfOWW5ttmG1iCL+Yzx7U2aWqoPJeeY61vdciy1sM62yWFc9GEvL7YTiW+ 1RdD1ttqCbg0GqZxH2BJbVECxtNPaQtx6E8F0/CadPqcpUyfMYTbLhhDhdUtE7AY1PrWoi3ibBg grLjZDe5eGdt1kinG2L9L/0/eGeRF5Fc0XV/al1F9lbmiCx2JCoi8giSudEW9kY3RcnpNaCgLDU 71qGp5r+uHDJ1rx33tRJrVONk0d01+F5zGmaUC/2RG+U0e9LD+NmRDSDJsc7 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-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: <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.