Re: [PATCH v4 05/10] x86/virt/tdx: Convert the td_ctrl metadata reader

From: Binbin Wu

Date: Tue Oct 13 2026 - 05:33:12 EST


On 10/12/2026 5:47 PM, Chao Gao wrote:
> Continue converting the metadata readers to the table-driven helper.
>
> Add a table that pairs each field ID with the 'struct
> tdx_sys_info_td_ctrl' member that holds its value, and read all fields by
> walking that table.
>
> Annotate the table as __initconst as it is referenced only during init.
>
> AI was used under supervision to review code and workshop logs
^
Nit: Missing a period.

>
> Signed-off-by: Chao Gao <chao.gao@xxxxxxxxx>
> Reviewed-by: Rick Edgecombe <rick.p.edgecombe@xxxxxxxxx>

Reviewed-by: Binbin Wu <binbin.wu@xxxxxxxxxxxxxxx>