Re: [PATCH v1 1/8] x86/virt/tdx: Stop treating tdx_global_metadata.h as auto-generated
From: Dave Hansen
Date: Wed Aug 05 2026 - 11:27:06 EST
On 8/5/26 05:06, Chao Gao wrote:
...
> One thing I'd like to confirm: is the concern that the JSON could be wrong
> about what modules actually implement, or just that there's no commitment
> to keep the JSON stable? or both?
Actually, the JSON from what I understand is _quite_ closely tied to the
implementation. It is always "right".
The problem is that the JSON is *too* closely tied. There is no separate
implementation and ABI. The published "ABI" really is just an artifact
of the implementation. It changes as the implementation changes, and
that's not something the kernel can use in practice.
Really "ABI" to TDX means something very different from what it means to
the kernel.