From: Xu Yilun <yilun.xu@linux.intel.com>
To: Chao Gao <chao.gao@intel.com>
Cc: "Edgecombe, Rick P" <rick.p.edgecombe@intel.com>,
"kvm@vger.kernel.org" <kvm@vger.kernel.org>,
"linux-coco@lists.linux.dev" <linux-coco@lists.linux.dev>,
"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>,
"Xu, Yilun" <yilun.xu@intel.com>,
"dave.hansen@linux.intel.com" <dave.hansen@linux.intel.com>,
"baolu.lu@linux.intel.com" <baolu.lu@linux.intel.com>,
"Peng, Chao P" <chao.p.peng@intel.com>,
"bp@alien8.de" <bp@alien8.de>,
"mingo@redhat.com" <mingo@redhat.com>,
"x86@kernel.org" <x86@kernel.org>,
"tglx@kernel.org" <tglx@kernel.org>,
"Tian, Kevin" <kevin.tian@intel.com>,
"hpa@zytor.com" <hpa@zytor.com>,
"kas@kernel.org" <kas@kernel.org>
Subject: Re: [RFC PATCH 2/7] coco/tdx-host: Establish an SPDM session with the device
Date: Sat, 28 Nov 2026 17:35:44 +0800 [thread overview]
Message-ID: <awqgcMpr9CjMZGdU@yilunxu-OptiPlex-7050> (raw)
In-Reply-To: <awWKRJQ3_rIgxJVC@intel.com>
> >> +#define SPDM_CAP_HBEAT BIT(13)
> >> +#define SPDM_CAP_KEY_UPD BIT(14)
> >> +
> >> +struct spdm_config_info_t {
> >> + u32 vmm_spdm_cap;
> >> + u8 spdm_session_policy;
> >> + u8 certificate_slot_mask;
> >> + u8 raw_bitstream_requested;
> >> + u8 reserved[4089];
> >> +} __packed;
> >
> >This looks like more SPDM specific stuff in TDX. Do really know other vendors
> >need it? We should at least group it in a header such that it is clear which
> >things are SPDM spec and which are TDX.
>
> This structure is not from the SPDM spec. It is an ABI structure
> defined by the TDX module, and it is passed to TDH.SPDM.CONNECT.
>
> But yes, there is some SPDM-specific stuff in this series. I will try
> to separate it from the TDX stuff.
[...]
> >> + 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?
next prev parent reply other threads:[~2026-11-28 9:46 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-16 11:10 [RFC PATCH 0/7] TDX: Enable PCIe link encryption for trusted I/O Chao Gao
2026-11-16 11:10 ` [RFC PATCH 1/7] coco/tdx-host: Create metadata for an SPDM session Chao Gao
2026-11-21 2:05 ` Edgecombe, Rick P
2026-11-30 2:50 ` Chao Gao
2026-11-16 11:10 ` [RFC PATCH 2/7] coco/tdx-host: Establish an SPDM session with the device Chao Gao
2026-11-23 23:23 ` Edgecombe, Rick P
2026-11-24 12:59 ` Chao Gao
2026-11-24 21:11 ` Edgecombe, Rick P
2026-11-28 9:25 ` Xu Yilun
2026-11-28 9:35 ` Xu Yilun [this message]
2026-11-16 11:10 ` [RFC PATCH 3/7] coco/tdx-host: Exchange SPDM messages through DOE Chao Gao
2026-11-24 0:02 ` Edgecombe, Rick P
2026-11-24 11:57 ` Chao Gao
2026-11-24 22:02 ` Edgecombe, Rick P
2026-11-25 12:12 ` Chao Gao
2026-11-25 17:48 ` Edgecombe, Rick P
2026-11-28 12:42 ` Xu Yilun
2026-11-28 9:47 ` Xu Yilun
2026-11-16 11:10 ` [RFC PATCH 4/7] coco/tdx-host: Pass a device info buffer to tdh_spdm_connect() Chao Gao
2026-11-16 11:10 ` [RFC PATCH 5/7] coco/tdx-host: Configure an IDE stream Chao Gao
2026-11-28 13:17 ` Xu Yilun
2026-11-16 11:10 ` [RFC PATCH 6/7] coco/tdx-host: Program IDE keys and enable the " Chao Gao
2026-11-16 11:10 ` [RFC PATCH 7/7] x86/virt/tdx: Enable PCIe link encryption Chao Gao
2026-11-21 1:35 ` [RFC PATCH 0/7] TDX: Enable PCIe link encryption for trusted I/O Edgecombe, Rick P
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=awqgcMpr9CjMZGdU@yilunxu-OptiPlex-7050 \
--to=yilun.xu@linux.intel.com \
--cc=baolu.lu@linux.intel.com \
--cc=bp@alien8.de \
--cc=chao.gao@intel.com \
--cc=chao.p.peng@intel.com \
--cc=dave.hansen@linux.intel.com \
--cc=hpa@zytor.com \
--cc=kas@kernel.org \
--cc=kevin.tian@intel.com \
--cc=kvm@vger.kernel.org \
--cc=linux-coco@lists.linux.dev \
--cc=linux-kernel@vger.kernel.org \
--cc=mingo@redhat.com \
--cc=rick.p.edgecombe@intel.com \
--cc=tglx@kernel.org \
--cc=x86@kernel.org \
--cc=yilun.xu@intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®