However, the function cannot be compiled if its definition remains in the vmx/tdx/tdx.c file while disabling the CONFIG_TDX_HOST. It would be better to move the definition to a shared location, allowing the host and guest to share the same code.
No not in this series. Such change needs to be in your series. Thanks, -Kai