Re: [PATCH v3 03/16] x86/virt/tdx: Simplify tdmr_get_pamt_sz()
From: Xiaoyao Li
Date: Mon Sep 29 2025 - 07:44:53 EST
On 9/19/2025 8:50 AM, Huang, Kai wrote:
static unsigned long tdmr_get_pamt_sz(struct tdmr_info *tdmr, int pgsz,AFAICT you don't need pass the whole 'pamt_entry_size[]' array, passing
- u16 pamt_entry_size)
+ u16 pamt_entry_size[])
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?