From: Jason Gunthorpe <jgg@nvidia.com>
To: Jiri Pirko <jiri@resnulli.us>
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 1/9] attestation: Add the base family specification and generated files
Date: Mon, 30 Nov 2026 16:25:39 -0400 [thread overview]
Message-ID: <20261130202539.GA114472@nvidia.com> (raw)
In-Reply-To: <awl4L8vEV5bvwE-Z@FV6GYCPJ69>
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
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.
> >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
Jason
next prev parent reply other threads:[~2026-11-30 20:26 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-13 16:08 [PATCH RFC v2 0/9] attestation: Add a common subsystem and TDX support Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 1/9] attestation: Add the base family specification and generated files Jiri Pirko
2026-11-27 0:25 ` Jason Gunthorpe
2026-11-27 12:54 ` Jiri Pirko
2026-11-30 20:25 ` Jason Gunthorpe [this message]
2026-11-30 14:00 ` Jiri Pirko
2026-11-30 20:35 ` Jason Gunthorpe
2026-11-13 16:08 ` [PATCH RFC v2 2/9] Documentation: attestation: Add userspace ABI Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 3/9] attestation: Prepare provider and instance core Jiri Pirko
2026-11-27 0:25 ` Jason Gunthorpe
2026-11-30 14:19 ` Jiri Pirko
2026-11-30 20:37 ` Jason Gunthorpe
2026-11-13 16:08 ` [PATCH RFC v2 4/9] attestation: Prepare measurement registers Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 5/9] attestation: Add CTLV operation handling Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 6/9] Documentation: attestation: Describe how to write a provider Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 7/9] tdx-guest: Expose the native attestation service API Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 8/9] attestation: Add the TDX family specification and generated files Jiri Pirko
2026-11-13 16:08 ` [PATCH RFC v2 9/9] attestation: Add the TDX family implementation Jiri Pirko
2026-11-23 9:09 ` Yeoreum Yun
2026-11-23 12:38 ` Jarkko Sakkinen
2026-11-23 15:11 ` Jason Gunthorpe
2026-11-23 15:15 ` Jarkko Sakkinen
2026-11-23 15:24 ` Jarkko Sakkinen
2026-11-23 15:40 ` Jason Gunthorpe
2026-11-23 15:42 ` Jarkko Sakkinen
2026-11-24 12:13 ` Jiri Pirko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20261130202539.GA114472@nvidia.com \
--to=jgg@nvidia.com \
--cc=James.Bottomley@hansenpartnership.com \
--cc=aik@amd.com \
--cc=alistair.francis@wdc.com \
--cc=aneesh.kumar@kernel.org \
--cc=ankita@nvidia.com \
--cc=cedric.xing@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=dave.jiang@intel.com \
--cc=david.quigley@intel.com \
--cc=drdeeglaze@gmail.com \
--cc=elena.reshetova@intel.com \
--cc=jarkko@kernel.org \
--cc=jic23@kernel.org \
--cc=jiri@resnulli.us \
--cc=jpiotrowski@nvidia.com \
--cc=kas@kernel.org \
--cc=ksinyuk@kernel.org \
--cc=kvm@vger.kernel.org \
--cc=linux-api@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-doc@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=lukas@wunner.de \
--cc=nik.borisov@suse.com \
--cc=peter.fang@intel.com \
--cc=pgonda@google.com \
--cc=qinkun@google.com \
--cc=rick.p.edgecombe@intel.com \
--cc=rodrigo.vivi@intel.com \
--cc=sameo@meta.com \
--cc=sathyanarayanan.kuppuswamy@linux.intel.com \
--cc=sergii.dmytruk@3mdeb.com \
--cc=suzuki.poulose@arm.com \
--cc=x86@kernel.org \
--cc=yeoreum.yun@arm.com \
--cc=zohar@linux.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox