Skip to content

feat(rebinding): update MIGTD_DATA to GHCI 1.5 TDINFO format#778

Merged
jyao1 merged 1 commit intointel:mainfrom
MichalTarnacki:MIGTD_DATA
Apr 8, 2026
Merged

feat(rebinding): update MIGTD_DATA to GHCI 1.5 TDINFO format#778
jyao1 merged 1 commit intointel:mainfrom
MichalTarnacki:MIGTD_DATA

Conversation

@MichalTarnacki
Copy link
Copy Markdown
Contributor

Per GHCI 1.5, MIGTD_DATA now contains a single entry of type TDINFO:

  • Replace 3 type constants with MIGTD_DATA_TYPE_TDINFO = 0
  • Rewrite InitData struct: init_report/policy/event_log -> init_tdinfo
  • Add mrowner()/mrownerconfig() helpers for TDINFO_STRUCT field extraction
  • Enforce numberOfEntry == 1 and min size 512 in read_from_bytes()
  • get_from_local() extracts td_info from TDX report instead of full report
  • Update rebinding_old_prepare to use mrowner and local event_log
  • spdm_req: TdReportInit sends init_tdinfo, EventLogInit uses local log,
    MigPolicyInit sends mrowner instead of digest_sha384(init_policy)
  • Remove digest_sha384 import from rebinding.rs

Per GHCI 1.5, MIGTD_DATA now contains a single entry of type TDINFO:
- Replace 3 type constants with MIGTD_DATA_TYPE_TDINFO = 0
- Rewrite InitData struct: init_report/policy/event_log -> init_tdinfo
- Add mrowner()/mrownerconfig() helpers for TDINFO_STRUCT field extraction
- Enforce numberOfEntry == 1 and min size 512 in read_from_bytes()
- get_from_local() extracts td_info from TDX report instead of full report
- Update rebinding_old_prepare to use mrowner and local event_log
- spdm_req: TdReportInit sends init_tdinfo, EventLogInit uses local log,
  MigPolicyInit sends mrowner instead of digest_sha384(init_policy)
- Remove digest_sha384 import from rebinding.rs

Co-authored-by: Grams, Stanislaw <stanislaw.grams@intel.com>
@jyao1 jyao1 merged commit c35e102 into intel:main Apr 8, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants