Re: [PATCH v7 11/22] x86/virt/seamldr: Shut down the current TDX module
From: Chao Gao
Date: Tue Apr 07 2026 - 07:53:02 EST
>+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);
>+}