Re: [RFC PATCH v2 00/10] TDX: Stop auto-generating the global metadata code

From: Chao Gao

Date: Wed Sep 23 2026 - 04:29:56 EST


On Wed, Sep 23, 2026 at 08:47:13AM +0800, Edgecombe, Rick P wrote:
>On Fri, 2026-09-18 at 06:29 -0700, Chao Gao wrote:
>> Chao Gao (10):
>>   x86/virt/tdx: Add a helper to read a table of metadata fields
>>   x86/virt/tdx: Convert the version metadata reader
>>   x86/virt/tdx: Convert the features metadata reader
>>   x86/virt/tdx: Convert the tdmr metadata reader
>>   x86/virt/tdx: Convert the td_ctrl metadata reader
>>   x86/virt/tdx: Convert the handoff metadata reader
>>   x86/virt/tdx: Convert the td_conf metadata reader
>>   x86/virt/tdx: Remove tdx_global_metadata.c
>>   x86/virt/tdx: Use early returns in get_tdx_sys_info()
>>   x86/virt/tdx: Verify structure member sizes against metadata field IDs
>>
>>  arch/x86/virt/vmx/tdx/tdx.c                 | 222 +++++++++++++++++++-
>>  arch/x86/virt/vmx/tdx/tdx.h                 |  54 +++++
>>  arch/x86/virt/vmx/tdx/tdx_global_metadata.c | 154 --------------
>>  3 files changed, 275 insertions(+), 155 deletions(-)
>>  delete mode 100644 arch/x86/virt/vmx/tdx/tdx_global_metadata.c
>>
>> --
>> 2.52.0
>
>What is the base commit?

Commit e61c837817ac ("Documentation/x86: Add documentation for TDX's Dynamic PAMT")
from the tip/x86/tdx branch.