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

From: Tian, Kevin

Date: Thu Apr 09 2026 - 03:56:19 EST


> From: Xu Yilun <yilun.xu@xxxxxxxxxxxxxxx>
> 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.