[PATCH v1 26/26] coco/tdx-host: Finally enable SPDM session and IDE Establishment

Xu Yilun
2025-11-17T02:39:29Z

The basic SPDM session and IDE functionalities are all implemented,
enable them.

Signed-off-by: Xu Yilun <yilun.xu@linux.intel.com>
---
drivers/virt/coco/tdx-host/tdx-host.c | 10 +++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/drivers/virt/coco/tdx-host/tdx-host.c b/drivers/virt/coco/tdx-host/tdx-host.c
index 7f3c00f17ec7..b809f8f77206 100644
--- a/drivers/virt/coco/tdx-host/tdx-host.c
+++ b/drivers/virt/coco/tdx-host/tdx-host.c
@@ -885,7 +885,7 @@ static int tdx_iommu_enable_all(void)
return ret;
}

-static int __maybe_unused tdx_connect_init(struct device *dev)
+static int tdx_connect_init(struct device *dev)
{
struct tsm_dev *link;
int ret;
@@ -934,12 +934,8 @@ static int __maybe_unused tdx_connect_init(struct device *dev)

static int tdx_host_probe(struct faux_device *fdev)
{
- /*
- * Only support TDX Connect now. More TDX features could be added here.
- *
- * TODO: do tdx_connect_init() when it is fully implemented.
- */
- return 0;
+ /* Only support TDX Connect now. More TDX features could be added here. */
+ return tdx_connect_init(&fdev->dev);
}

static struct faux_device_ops tdx_host_ops = {
--
2.25.1