Re: [PATCH v7 11/22] x86/virt/seamldr: Shut down the current TDX module

Chao Gao
2026-04-07T11:51:28Z

>+int tdx_module_shutdown(void)
>+{
>+ struct tdx_module_args args = {};
>+
>+ /*
>+ * Shut down the TDX module and prepare handoff data for the next
>+ * TDX module. This SEAMCALL requires a handoff version. Use the
>+ * module's handoff version, as it is the highest version the
>+ * module can produce and is more likely to be supported by new
>+ * modules as new modules likely have higher handoff version.
>+ */

Will change this comment to:
/*
* Use the module's handoff version as it is the highest the
* module can produce and most likely supported by newer modules.
*/

>+ args.rcx = tdx_sysinfo.handoff.module_hv;
>+ return seamcall_prerr(TDH_SYS_SHUTDOWN, &args);
>+}