Re: [PATCH v2 06/31] x86/virt/tdx: Read global metadata for TDX Module Extensions/Connect

Xu Yilun
2026-03-31T14:44:49Z

> > +static int get_tdx_sys_info_ext(struct tdx_sys_info_ext *sysinfo_ext)
> > +{
> > + int ret = 0;
> > + u64 val;
> > +
> > + if (!ret && !(ret = read_sys_metadata_field(0x3100000100000000, &val)))
>
> nit: This is likely generated by a script/llm because I see no other
> explanation why !ret is being checked here...
>

Yes, the file was generated by script at the beginning.