Re: [PATCH v8 10/16] x86/virt/tdx: Allocate and set up PAMTs for TDMRs

From: Dave Hansen
Date: Fri Jan 06 2023 - 19:47:09 EST


On 12/8/22 22:52, Kai Huang wrote:
> @@ -574,6 +774,11 @@ static int init_tdx_module(void)
> * Return error before all steps are done.
> */
> ret = -EINVAL;
> + if (ret)
> + tdmrs_free_pamt_all(&tdmr_list);
> + else
> + pr_info("%lu pages allocated for PAMT.\n",
> + tdmrs_count_pamt_pages(&tdmr_list));

Could you please convert this to megabytes or kilobytes? dmesg is for
humans and humans don't generally know how large their systems or DIMMs
are in pages without looking or grabbing a calculator.