Re: [PATCH v19 002/130] x86/virt/tdx: Move TDMR metadata fields map table to local variable

From: Huang, Kai
Date: Thu Apr 04 2024 - 16:18:58 EST


On Thu, 2024-04-04 at 17:08 +0300, Kirill A. Shutemov wrote:
> On Mon, Feb 26, 2024 at 12:25:04AM -0800, isaku.yamahata@xxxxxxxxx wrote:
> > From: Kai Huang <kai.huang@xxxxxxxxx>
> >
> > The kernel reads all TDMR related global metadata fields based on a
> > table which maps the metadata fields to the corresponding members of
> > 'struct tdx_tdmr_sysinfo'. Currently this table is a static variable.
> >
> > But this table is only used by the function which reads these metadata
> > fields and becomes useless after reading is done. Change the table
> > to function local variable.
> >
> > Signed-off-by: Kai Huang <kai.huang@xxxxxxxxx>
> > Signed-off-by: Isaku Yamahata <isaku.yamahata@xxxxxxxxx>
>
> Reviewed-by: Kirill A. Shutemov <kirill.shutemov@xxxxxxxxxxxxxxx>
>

Thanks Kirill. I've split this out and sent out v2, and have added your tag
there:

https://lore.kernel.org/lkml/cover.1711447449.git.kai.huang@xxxxxxxxx/