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

comid: Add OVMF metadata to the Measurement type #114

Closed
wants to merge 2 commits into from

Conversation

jraman567
Copy link
Contributor

SEV-SNP launch digest is a function of OVMF metadata, among others. Therefore, this patch adds support to add it as a reference value to Veraison.

We need this reference value to compute the SEV-SNP launch digest on-demand.

jraman567 and others added 2 commits June 4, 2024 15:31
SEV-SNP launch digest is a function of OVMF metadata, among others.
Therefore, this patch adds support to add it as a reference value to
Veraison.

Signed-off-by: Jagannathan Raman <[email protected]>
Reviewed-by: Liam Merwick <[email protected]>
Reviewed-by: Ian Chin Wang <[email protected]>
Signed-off-by: Thomas Fossati <[email protected]>
@jraman567
Copy link
Contributor Author

Hi there,

Please review this pull request and let me know if I need to make any changes.

I ran make lint; make presubmit.

lint didn't report any errors. However, it needs Golang version 1.21 to complete; golangci-lint needs a minimum of 1.21.

presubmit reported a few errors. However, they are existing errors.

Thank you, @thomas-fossati for the CI patch.

Thank you!

@jraman567
Copy link
Contributor Author

Hi @yogeshbdeshpande @thomas-fossati @setrofim ,

I just sent a pull request to add OVMF metadata to CoRIM reference values. Please let me know if it looks good.

Thank you, @thomas-fossati , for fixing the CI issue.

--
Jag

UEID *eat.UEID `cbor:"9,keyasint,omitempty" json:"ueid,omitempty"`
UUID *UUID `cbor:"10,keyasint,omitempty" json:"uuid,omitempty"`
IntegrityRegisters *IntegrityRegisters `cbor:"14,keyasint,omitempty" json:"integrity-registers,omitempty"`
OvmfMetadata *ovmf.MetadataWrapper `cbor:"15,keyasint,omitempty" json:"ovmf-metadata,omitempty"`
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be done as extension work, not natively inside CoRIM.

Copy link
Contributor

@thomas-fossati thomas-fossati left a comment

Choose a reason for hiding this comment

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

Hi @jraman567, thanks very much for your contribution.

From the CoRIM perspective, OvmfMetadata is a profile-specific extension. Since it's not part of the base spec, it should be handled using veraison/corim's extensions framework rather than adding it directly into struct Mval.

Of course, we can work with you to make the needed changes.

@jraman567
Copy link
Contributor Author

Thanks for the feedback, @thomas-fossati ! I'll get back to you with that change.

@jraman567 jraman567 closed this Aug 6, 2024
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.

3 participants