Skip to content

Update DeviceGetconfComputeGpuAttestationReport to take struct as input#159

Merged
klueska merged 1 commit intoNVIDIA:mainfrom
klueska:update-attestation-api
Aug 22, 2025
Merged

Update DeviceGetconfComputeGpuAttestationReport to take struct as input#159
klueska merged 1 commit intoNVIDIA:mainfrom
klueska:update-attestation-api

Conversation

@klueska
Copy link
Collaborator

@klueska klueska commented Aug 22, 2025

This is a BREAKING CHANGE, but one that is necessary, because the API is unusable in its current form. In the C API, the input struct us used to pass both input and output. In our original implementation we didn't take this struct as input, so there was no way to get this input passed into the function. The API has now been updated to correct this.

One option could have been to just add the single input field as an input to the API call on its own, but this is not scalable in cases where one my add more input fields to the struct in the future.

In the end, (even though this goes against our other wrapper API calls), we decided it was best to just pass the whole struct and assume its usage as both input and output just like the C API.

We plan to revisit how to more comprehensively accommodate APIS such as this in the future.

This is a BREAKING CHANGE, but one that is necessary, because the API is
unusable in its current form. In the C API, the input struct us used to
pass _both_ input _and_ output. In our original implementation we didn't
take this struct as input, so there was no way to get this input passed
into the function. The API has now been updated to correct this.

One option could have been to just add the single input field as an
input to the API call on its own, but this is not scalable in cases
where one my add more input fields to the struct in the future.

In the end, (even though this goes against our other wrapper API calls),
we decided it was best to just pass the whole struct and assume its
usage as both input and output just like the C API.

We plan to revisit how to more comprehensively accommodate APIS such as
this in the future.

Signed-off-by: Kevin Klues <kklues@nvidia.com>
@klueska klueska requested a review from elezar August 22, 2025 09:05
Copy link
Member

@elezar elezar left a comment

Choose a reason for hiding this comment

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

LGTM.

@klueska klueska merged commit 6950f76 into NVIDIA:main Aug 22, 2025
4 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