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

From: Jiri Pirko

Date: Thu Dec 03 2026 - 04:53:42 EST


Wed, Dec 02, 2026 at 10:31:56PM +0100, jarkko@xxxxxxxxxx wrote:

[..]

>
>One more why that came to mind from this: why yaml? Not for or against;
>I just have not found out so far where the roots are for that pick.

The spec is input to a generator: the uAPI header, the kernel's
schema tables, the user library, ctlvctl's tables and the ABI check
all come out of it. So it has to be something a tool reads and a
reviewer can still read in a patch, with comments. The kernel
already writes its netlink specs and DT bindings in YAML, and the
tools to check a file against a schema exist. Nothing deeper than
that. Looks like the best fit for the job.