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=jaQ0jyMFIn3I6hW/GLDc2U8rUgKFgzizMtZwuTdYgdxM9RvLob6FyvVS13jSpSp5RrX2 DNs6zi/i8Ea/y7iUNMVGjvKzo3+Dme5ctw/CX0Jv4iB6WigUkSyHGuRNJnATZGbA2wnZX oZEimB6Ij2T/jebvNf9yODiKEBQwwzE9ljvZqYqVF4B6SbSV6AglvbInvx06DoQw3UsVf bVJX1ug1tsGyp9wEEk9rXD5w5RPONqG6TOWJJgSQ2R15FRz3zO4pwU9uK13RXApyiADek dojefsipRlsWPQlG6WJCzEiEXwE5t6xPe315yQ3+jOvygtsJu0/vaCgr66ZVqAu2Lyg== 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=Txvy/JcExhJ+cIBCxgeSykXyd2wrIgvOFxYe9D42CjQqT7OlwV0W18jzRTnbU4SeFYh6 pwp7JWon7NU90KeFCMozLIJXHA3izaTRFFY9NpE/xGKRut4R2DSaaC813bP9IGbj5M7VU 91SIIaguUkeKHVZP4YggjUJWmPBQbrobhHtvHJ8LWANP/wxEtkvSxfmJtBAqR9yJWa34e 1fa1W5i2x0kgxm5xiUCGmXTrZtz5XTYbgWSmr8smebB+C3Kq8g0/RDOJHqB0GREWujPim 8LUd3NKVXLBVvjgids8jspUMJL77r7hvbWxpZQG5GvsH3Fvv4LfaeDvadr17RTTD+3Q== 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 B22FF606A322 for ; Thu, 3 Dec 2026 10:16:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org B22FF606A322 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-5be3ed646a5so9596444e87.1 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=umrGzU80j8y3mRqBGWN03KqDFTSJ+oVnq8PlreTyIVqvxQIil/DX0Nau+AezpjS93K BJgw2c4vFy1pgoLJhT35vYkvsGyg91/wORPeB0lUntBnfR2q0Jd3uK1VaFmD0str+twc +RMcQZwu4i/pqmIMQUcMnZoEKt3mwel84y36UX02AXoxJNUOLmDSK9mNPeilbJFb0qHM R07NKErPxTS30T09gii6CedNOtYUgYbaUBBvh9hiVtTK4Dm4l60YhAV/4wxGm4hYr4hA r+UC1pufochF3y5oM2rfxjsPJ2lqawywCi1d4Jpbs7Gdu13ghKge9hpfzMTNz0gOYPrE rvaA== X-Forwarded-Encrypted: i=1; AL+hErGcU9shZkWCUCXGqpEQtM2WDg+LpP/KbRTTas3unSyzejhFIivwYutl76c4/uRKpp79Nd4=@vger.kernel.org X-Gm-Message-State: APuU4Z/6b+V8dbN/YD6+SDRe6gNLYeM22smUN0JadOWGvEXkwOh7gylt XBWjwagsVjYKGwozqispmbngJK8m9LxP2C1nVJw0QautwtmUPZ8Ke70O87VuuvTKwDs= X-Gm-Gg: AZFdTZeThnLMghpwBM7mU+E/ISAqw6EnG47f7/9EU4vxTMVHd/w+kDMKFjTs655mkZb Jp+wkxkEVCgmzLirjnpWE2Vzu51deE83EFNGeMNNrcXcz8Uf/wi5dBBAO5K9bnVieeXVjM91ZXC +mMFGaUKdfn9NR0psEgB/hKJQ6PCRioLypOvL01woHYEgeQ3qfYg9ffthpBYg+kUjF4of8bY+8I +zYukC2zpIv0wPJPfUv0ehr7FnLiwiR6+NYtIsyNqbJPkthCm1VsDN8QJdE4u/Uu8/TG+zvW4g7 50Ed5KUTOpQ3e3ExmOYI33XpaE8IJ9tJzkbZ5qRkt2XbJ6txF40MLV8+xqowYz6WLnmSflR3U1o DYCdWIf5et2Yhq0yNw1Qjwi2iaDhTwqMpMZ9K1wLEGWSzWoPYT1TKYdR9F/WUvqN8onlFo8Y0s3 /uK0tX3utI4pEpKpADsUh3m3+KX8bTfhJg4i23w8A2yVY7L7nipJi09r/KABstY9J4pXTKxYP1j J8ic8O8aKKkw0G4fad/AU55ear7c3PLq5X+UPAuH8dX/tvL8cqt/0JTl4lfUVQIPUv6vUqtiz3+ thW4U1IsHZVnTRLV85+9JzMAOF0frNWljTaFxYln21SbKt55SpKZ7Tl13tyl 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: 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: <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.