Skip to content

Conversation

@IntelCaisui
Copy link
Contributor

To reduce the stack size consumed by avoid allocating large slices
caused by vdm structs have includes vdm payload slices.

@IntelCaisui
Copy link
Contributor Author

IntelCaisui commented Dec 18, 2025

Ready to review.
Stack consumption update.
MigTd spdm attestation 1 session with policy v2 update
Rsp.
max stack usage: b3f38
max heap usage: 140c07
Req.
max stack usage: 8a2a8
max heap usage: 15ef8e

Reducing about 50% stack usage after this updating spdm-rs.

@IntelCaisui IntelCaisui force-pushed the 201218_MIGTD_STACK_VDM_PAYLOAD_IMPR branch 3 times, most recently from fc5abec to 576a30b Compare December 25, 2025 07:54
@IntelCaisui IntelCaisui marked this pull request as ready for review December 25, 2025 08:30
@IntelCaisui IntelCaisui requested a review from jyao1 as a code owner December 25, 2025 08:30
@IntelCaisui IntelCaisui force-pushed the 201218_MIGTD_STACK_VDM_PAYLOAD_IMPR branch from 576a30b to 23c1adf Compare December 25, 2025 09:29
To reduce the stack size consumed by avoid allocating large slices
  caused by vdm structs have includes vdm payload slices.
Update the spdm-rs call extend vdm request api to support passing
  vdm payload as u8 array reference.
@IntelCaisui IntelCaisui force-pushed the 201218_MIGTD_STACK_VDM_PAYLOAD_IMPR branch from 23c1adf to bb01e01 Compare December 25, 2025 09:34
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.

1 participant