Re: [RFC PATCH 3/7] coco/tdx-host: Exchange SPDM messages through DOE
From: Edgecombe, Rick P
Date: Wed Nov 25 2026 - 12:48:50 EST
On Wed, 2026-11-25 at 20:12 +0800, Chao Gao wrote:
> static int tdx_spdm_msg_exchange(struct tdx_tsm_link *tlink)
> {
> struct pci_dev *pdev = tlink->pci.base_tsm.pdev;
> int ret;
>
> ret = pci_doe_raw(tlink->pci.doe_mb,
> page_address(tlink->out_msg), PAGE_SIZE,
> page_address(tlink->in_msg), PAGE_SIZE);
> if (ret < 0) {
> pci_err(pdev, "spdm msg exchange fail %d\n", ret);
> return ret;
> }
>
> return 0;
> }
If the DOE people are ok with this, it does seem much better to me on our side.