RE: [PATCH v2 24/31] coco/tdx-host: Add a helper to exchange SPDM messages through DOE

Tian, Kevin
2026-04-09T07:56:09Z

> From: Xu Yilun <yilun.xu@linux.intel.com>
> Sent: Saturday, March 28, 2026 12:01 AM
> +
> +static int __maybe_unused tdx_spdm_msg_exchange(struct tdx_tsm_link
> *tlink,
> + void *request, size_t
> request_sz,
> + void *response, size_t
> response_sz)
> +{
> + struct pci_dev *pdev = tlink->pci.base_tsm.pdev;

call it pci_spdm_msg_exchange() and pass in struct pci_dev directly.

there is no other use of tlink in this function. could add a note that
this should be moved to pci core when a 2nd user of raw frame comes.