Re: [PATCH v2 06/17] x86/virt/tdx: Re-initialize the extensions on runtime TDX module update
"Edgecombe, Rick P" <[email protected]> Mon, 27 Jul 2026 18:37:39 +0000
| Newsgroups | dev.linux.lists.linux-coco,org.kernel.vger.kvm,org.kernel.vger.linux-kernel |
|---|---|
| Message-ID | <[email protected]> |
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.