Re: [PATCH v3 03/16] x86/virt/tdx: Simplify tdmr_get_pamt_sz()

Edgecombe, Rick P
2025-09-29T17:47:52Z

On Mon, 2025-09-29 at 19:44 +0800, Xiaoyao Li wrote:
> On 9/19/2025 8:50 AM, Huang, Kai wrote:
> > >    static unsigned long tdmr_get_pamt_sz(struct tdmr_info *tdmr, int pgsz,
> > > -       u16 pamt_entry_size)
> > > +       u16 pamt_entry_size[])
> > AFAICT you don't need pass the whole 'pamt_entry_size[]' array, passing
> > the correct pamt_entry_size should be enough.
>
> While we are at it, how about just moving the definition of
> pamt_entry_size[] from construct_tdmrs() to here?

Oh yea, that is better.