Re: [RFC PATCH 2/7] coco/tdx-host: Establish an SPDM session with the device
From: Chao Gao
Date: Mon Nov 30 2026 - 07:21:01 EST
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?
If so, I would keep the definition and pass 0x1.