Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change requester get measurement flow #348

Merged
merged 1 commit into from
May 30, 2024

Conversation

Wenxing-hou
Copy link
Contributor

Fix: #346

Because the L1/L2 will be reset in case of
MEASUREMENT error, it will impact 1-by-1 calculation.

The solution is: get the existing measurement list before 1-by-1 get measurement.

The change has passed the test.

@Wenxing-hou Wenxing-hou requested a review from jyao1 May 21, 2024 11:42
@@ -109,14 +109,56 @@ libspdm_return_t spdm_send_receive_get_measurement(void *spdm_context,
index, m_use_slot_id & 0xF, requester_context, NULL, &number_of_block,
&measurement_record_length, measurement_record,
NULL, NULL, NULL, NULL, NULL);
if (LIBSPDM_STATUS_IS_ERROR(status)) {
if ((LIBSPDM_STATUS_IS_ERROR(status)) && (status != LIBSPDM_STATUS_VERIF_FAIL)) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why change this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks. I have changed the line to its original form.

Fix the issue: DMTF#346

Because the L1/L2 will be reset in case of
MEASUREMENT error, it will impact 1-by-1 calculation.

The solution is: get the existing measurement list
before 1-by-1 get measurement.

The change has passed the test.

Signed-off-by: Wenxing Hou <[email protected]>
@Wenxing-hou Wenxing-hou requested a review from jyao1 May 29, 2024 02:30
@jyao1 jyao1 merged commit 2391859 into DMTF:main May 30, 2024
27 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.

need to have better way to demonstrate how to do 1-by-1 measurement calculation.
2 participants