Re: [PATCH v2 06/17] x86/virt/tdx: Re-initialize the extensions on runtime TDX module update
From: Edgecombe, Rick P
Date: Mon Jul 27 2026 - 14:41:10 EST
On Mon, 2026-06-29 at 16:12 +0800, Chao Gao wrote:
> Will tdx_ext_init() return an error if more memory is needed?
>
> If yes, we can leave this check to the module. And with ext_required
> removed (per my earlier comment), this function simplifies to:
>
> int update_tdx_module_extensions(void)
> {
> if (!(tdx_sysinfo.features.tdx_features0 & TDX_FEATURES0_EXT))
> return 0;
>
> return tdx_ext_init();
> }
Oh, it can be simplified and not share so much with the init side. Please ignore
my other question.