From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=209.85.167.54 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796293011; b=dyz8LrBpICX4GNHeeaSXQQXfJrckB6yv9gHIKHFKRU84sMY1QxzMjxqQ4MSg6pkSXqXC 3azCG9F5CjnTQNnNaNOOluUOoSXKq4bI9kSnlPNwEeFcoAxcOSETO1pKkckc7z7h67GYH D7nLLBIgA7ac0hHo0mXP3WG6pPEME9FEjitZ9JmRss8jiBiqeQkB/33SW6EJsTgex3DBl yQJRBEdKBe3+JsCMIdTTit14v/HdF+uRNemNUunxTOepzpTNrco9C5vdNLYyvLis7vbCP egjVuw+0FlenolQvgA07468qzuWngftVcpr7UaBsNwYQZzY9lmO0V8+HYwdjNO1KeSg== 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=EpZCMn3pS+BtntDbDyYDDC24iF4CW0dWEKo1p8xVen52uCzdbM5nQAUpS7FJM3s3eyZK lCc6KXcyjvnjI3oDBES9nPkvO6h+DTDjqbFBqoRgTU6Q696mWfhc6zLXERLkd14fndGEB 6gOzSaUqQws9KlTPZholgzn+JXuuQ7TT3JrEqyBsXEkaoGHSRYR3GD+eozKizGER0HZ8Q +Ydu4AQ/RlZ4wkxokLoeaIE4AxW8V9dejB4HsluPWBWYoeQ3GZGBWxIdepbsO/f//Tn9u kWsM4bEWK+zMYY1m724Zbq3wKyX6N+11QsPJI7aG1wqVIky850A4izNGregInVNObwg== 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.167.54 Received: from mail-lf1-f54.google.com (mail-lf1-f54.google.com [209.85.167.54]) (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 B236B606A32C for ; Thu, 3 Dec 2026 10:16:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B236B606A32C 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-lf1-f54.google.com with SMTP id 2adb3069b0e04-5c1479a959aso11423542e87.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=nFfEyXy0tlzqa01PenhenjVbr8VL0ClMmyUPZdmyp3/pElzyAN8/I58hTFRkZbwSfh wj3ksOWGn/y1w9c0Bm4+vdKGkd4Vilst6X70Qu3LrwG8KGtj7bWXoQzx4HTue2/hC7a7 708foEBHjiXJKQkCCt7J9b4g7gobXCLm20j+qkQTwqotDgPlOPlJ2VwTudXWMAe0PczH jP+vbXO/MVFOiSqjVXSZ60saDFiGeDzf0qrAuFxMrrY0aVraePYxlFRbEgrLKz2N/4jG sLEtcZWqmgiK21zAj4xtKweL95ZVLS8GUCnM3gjQb/U/LUsp5TN92tCwd61VMTTI3r50 N0TA== X-Forwarded-Encrypted: i=1; AL+hErEGx+0ojqtTu3luObphFEyc9tiKAC6jLHFqrOSpP5gQGgCNAEHHjvyqtLk2g1y90L9CV/fuYFnDjmm3Ybw=@vger.kernel.org X-Gm-Message-State: APuU4Z+n0/sSlWHiY8veDcLjxfblWQTsBUmwyt+l74X1e8bcGHuQpFoY wEwxh6XpkGOL8+hj965ftw5EUTty0ZcgLu5+Pba0lQj8gWXOYwsMuEtKdLsjvIO894k= X-Gm-Gg: AZFdTZfQZKkCyA+/iu5VKKLzzgZyaT5pZvBQugo0d/XMVaV0NFizlJ1QNpKp/tTyoZ+ LUz/479+b1H+873uyuNEt9cfE6hNJm/JTi9PaBzMXBrILXgFUfkYyrSxzHk7wtTi0Wu2GhvRsz4 qTsRpYDFl4dXqawfEcc5bQtNQn3qptLjyTmmara2cN2ElzTE6ND8YRnGZPK4yLr2lDSSsqX0Pyw RhbM1IZYTr6DI9oi9XlBoWv3Yd9ozxkJfmiYakVdgcPirZXwKsYp064GtDPoaRPgCmuinVimJfk Nw1cwrPzo1k+KMkp33gfmvzQnwBGm79PyNmVe8EbZm1OT/aLL/4iMbDqWldb7N++MQZ3Jga5btU m8ihjHjUIe9BbFHclKy0ZnPgknsVLEifX6TcuHx1FBXE04yaliYuBEz0yQibqul6vOGeAFjeL6t DM6iAfSXaaBH3teZiMlXmXNE8tq3u9uFGRVH60sFKkhAqwgbtWR24N+5PFFvb+zR220LcUE6Fck dXne6nKHr2gTQa8Cd7jMhP9MwH9m5LK7vR3D9KMvt/kYFNvCHMNNuLWD6Xx5JVX/W/o19ZNv9nZ lQLt1bnyf4cmhz09f94uhk6m6k400UiX0BX6+8530CzPgEl+dmi519n6XBOg 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-kernel@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.