From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796225922; b=iKEHgFR5rGcg3RcRXEW6Vo0lx0SiaNQwwgOvzssjy4jmCDYV9tRf7VG7irLXjqOz85i2 D15bfgzSugNgMU0Be0koM8P01XYbuD2zhcqAO3tq4IPJIlHP4WHquztsyGauABSL0j21l Y7lkeIt1+yKDGp368s60GQ/2aQN1yruLyZ8Z7I8zVuNnCVTPvC4RKUX2u0xcg/mnEcz1N kqTnp2sPU+45AZ4Wj0Ro7wjIINI1EHCuo569NnMdnXwthb1U7ZFvjJOtqinTiGbdxM4M5 HBHAwkBTrbO4ldhLYG5a5fUCCmINAVvsz0mFOAwbhtJQfPqkFaGDiGEMsZRZLtcxLFw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796225922; h=Received:DKIM-Signature:Date:From:To:Cc:Subject:Message-ID: References:MIME-Version:Content-Type:Content-Disposition:In-Reply-To; bh=HJWkk+6DlofVhoUehNTcXKVFNePMLsAe9XDdn+nQ9Hs=; b=1DE9lL5z56XsqgcKZKpVHS+VLdRSYKotjN8FECd5XXpfiWxsMucjqy47mfjWnTVEG+kh Cmd3HkK9NdIFeJmwkaq1Yb8SBB2T+3LxvmJFp1pkfZROdgbg3PnLOiYG7iRcKK6Ix3atm oKBM+yO6w/X+Z8Z6nNBunE8z1vmj+iBbcXTIXvH9OukRhzSgeAvdoDh5Qu7de22JLSVGf 3AoL1if6TEXGJ/VizfKCHG+wnpcPZiSHMK1/AKTKPTqaA9QcKdA9PvSeTE9JcbH0S1nu9 RE8DDBWwsvINurA9FRiFjib2LFeGgCSvexKRr/1ReqVgxiTzPGBclJveTQvdSQSQxbQ== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oMArssYm; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with UTF8SMTPS id 2C431606A322; Wed, 2 Dec 2026 15:38:41 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=oMArssYm Received: by smtp.kernel.org (Postfix) with UTF8SMTPSA id DA6DF1F00899; Wed, 2 Dec 2026 15:38:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1796225921; bh=HJWkk+6DlofVhoUehNTcXKVFNePMLsAe9XDdn+nQ9Hs=; h=Date:From:To:Cc:Subject:References:In-Reply-To; b=oMArssYmRPwqQQOK9Kq4ohH/+NpfY8y8aHgqwmRj67BniBCMx/of1OjgyfYaJEO1y Ma2w8wcrsHGT8CPCYA4u/wVoBYseC3LJqt6Q+/7HsxXxT87fmnRxrRcVa/yuVlj/IN 0u6vcd+n4jNEN/AnRm7vgNfW+1nWQRpZHnun6aSW87GkEArPx06NY122DVBo2y0h/u W8boRPgNQjOUZwktJla7Zl7nq70p0uv5bHvsaI9AE9ICJdqOMMIQcUid5X3yFKy+aY k5PZvLPumRnp0Jpf4wkw7Ecqs99yM7SW3ad18hPMQ7Ov7VRWHK2ZE2JLMTCyKJYt8u ck+qF295sfNZA== Date: Wed, 2 Dec 2026 17:38:37 +0200 From: Jarkko Sakkinen To: Jiri Pirko Cc: Jason Gunthorpe , 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, 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 1/9] attestation: Add the base family specification and generated files Message-ID: References: <20261113160838.2512652-1-jiri@resnulli.us> <20261113160838.2512652-2-jiri@resnulli.us> <179573913907.519186.8407997114208887089.b4-review@b4> <20261130202539.GA114472@nvidia.com> X-Mailing-List: linux-doc@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: On Wed, Dec 02, 2026 at 03:01:58PM +0100, Jiri Pirko wrote: > Mon, Nov 30, 2026 at 09:25:39PM +0100, jgg@nvidia.com wrote: > >On Fri, Nov 27, 2026 at 01:54:49PM +0100, Jiri Pirko wrote: > >> >> + # A layout of an evidence object that one vendor defines, given by the > >> >> + # device's family. > >> >> + evidence-vendor-format: extension > >> > > >> >I find this 'standard' 'vendor' distinction confusing. Is this an > >> >artifact of the compilation process? > >> > > >> >This would be more usable if there was one enum but both this yaml and > >> >the driver yaml can contribute values to it. If we made an 'extendable > >> >enum' then the values could be full 64 bit ID numbers with the tree > >> >coding so that the extension works the same way as a op and record? > >> > > >> >Though I'm a bit nervous about what happens if something in a driver > >> >turns into a standard. It would be nice to be able to make the > >> >driver's ID promoted to a global ID without changing the ID. That > >> >sounds like something the generator could learn to do later I guess. > >> > >> I see your point. Bit if we have 64bit enum value what included the > >> family id, we still have per-family namespace of enum values. Hard to > >> "promote to global id". We would have to have one range of enum values, > >> some of which would be driver, some global. How exactly you see this > >> happening? > > > >I would just do the dumb simple thing, if we put something in a driver > >and realise later it was really global, then have some syntax like > > > > xx: > > - new_global = 0x1212342345 > > Ugh, hate this... Will try to figure something else up. > > > > > >Where the hex is the exact value in use by the driver, and the driver > >continues to have its enum unchanged to hold the value and keep source > >compatibility. > > > >This would be something used only rarely and to correct mistakes so I > >view it as OK if it is a bit messy. > > > >> >The comment should be improved to define what consitutes a 'format'. I > >> >was advocating that the format should define enough to check the > >> >signature and the challenge universally. > >> > > >> >Like Peter described the new TDX evidence as "tdx-quote-eat-cwt-1.0". > >> > > >> >Poking at the IETF RFCs with AI a bit I think it should be described > >> >as "CWT EAT" in this language. The EAT RFC defines the location of the > >> >challenge and uses the CWT packaging which defines how the signature > >> >is placed. > >> > > >> >I think ARM uses this format too, IDK what AMD uses. > >> > > >> >The EAT itself should have information inside that describes the > >> >"tdx-quote-1.0" idea, so we don't need it externally. > >> > >> Perhaps we need 2 attributes, "evidence-packaging" and > >> "evidence-format"? This is a bit unclear to me to be honest. > > > >I think for now we can just have the packaging, the "CWT EAT". It is > >supposed to be self describing so userspace should be able to > >understand what it is after looking inside it. > > Okay. > > > > > > >> >I wonder if it would be wise to put a bit more syntax here: > >> > supported-hash-algorithms[num_entries(hash-algo)]: hash-algo > >> > > >> >Just to be clear about exactly what is being extracted from > >> >hash_algo.. It is the total number of entries, not the maximum value > >> >or something else. > >> > >> I already have this changed in my work tree as: > >> "supported-hash-algorithms[enum hash-algo]: enum hash-algo". I think it > >> is enough, what do you think? > > > >I still look at it and wonder what value is inside the [], max value > >or total number? Here we want total number > > > >The enum is certainly helpful though > > the docs define it as "up to once per value of the enum". So it is the > number of values,n ever the highest one. What does provider need to provide dissected into pieces at apples/oranges abstraction level? ;-) Assets could be e.g., machine certificates, event logs (signed probably?), attestation keys, endorsement certificates, encrypted credentials (e.g., TPM2_ActivateCredential). Unless you got TPM2 covered I could probably write a provider within hours when I sit down and do it (even without AI) as long as I know what it needs to output. It's not a big stretch and then it is easier to review the patch set overall. Br, Jarkko