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

Xiaoyao Li
2025-09-29T11:44:53Z

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?