Re: [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files

From: Jiri Pirko

Date: Wed Dec 02 2026 - 09:02:15 EST


Mon, Nov 30, 2026 at 09:25:39PM +0100, jgg@xxxxxxxxxx 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.