Re: [RFC PATCH 2/7] coco/tdx-host: Establish an SPDM session with the device
From: Xu Yilun
Date: Thu Dec 03 2026 - 01:18:28 EST
On Mon, Nov 30, 2026 at 08:20:08PM +0800, Chao Gao wrote:
> On Sat, Nov 28, 2026 at 05:35:44PM +0800, Xu Yilun wrote:
> >> >> + spdm_conf->certificate_slot_mask = 0xff;
> >> >
> >> >Can we not have the magic number? I guess it means any?
> >>
> >> Sure, will remove the magic number. 0xff means getting the
> >> certificates in all slots (0-7) of the device.
> >>
> >> As a heads-up, this code will go away anyway when we switch to the new
> >> CTLV attestation framework.
> >
> >So it seems we don't need any spdm_config_info_t definition for now.
> >Should we keep the definition or just to provide a zero page to avoid
> >unnecessary explanations here?
>
> The certificate_slot_mask should be 0x1 so that we can get the
> certificate in slot 0, right?
No. I think Jason's point is that, the certifications that didn't get
signed/verified during SPDM negociation should not been returned. The
TDX module manages SPDM negociation. So instead of the VMM asks for the
slots it wants, the TDX module should return all available signed slots,
which is slot0 for now.
I think we don't need this certificate_slot_mask param any more.
>
> If so, I would keep the definition and pass 0x1.