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

Sev snp enhancements v1 #4

Closed
wants to merge 5 commits into from

Conversation

jraman567
Copy link
Contributor

Hi there,

This pull request adds miscellaneous patches to address minor issues in computing the launch digest and formatting MetadataWrapper as a JSON.

Thank you!

jraman567 added 4 commits May 7, 2024 10:57
The LaunchDigest* routines assume that the VMM is EC2. This patch
allows these routines to take the VMM type as a parameter
instead, allowing measurement for QEMU.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
The launch digest should also include the vcpu_signature to match the
hardware measurement. This patch adds a vcpu_type parameter to the
LaunchDigest* routines, which is used to look up the CPU signature from
the existing CpuSigs table.

If vcpu_type is unspecified, it defaults to using a signature value of
0.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
OVMF hash formatting for JSON needs to be more consistent. The
Marshaling routing adds a '0x' prefix, which the unmarshaling routine
doesn't account for. This change discards the '0x' prefix when
marshaling.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
CpuSigs is missing the signature for AMD Genoa processors; this patch
adds it.

Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ian Chin Wang <ian.chin.wang@oracle.com>
@jraman567
Copy link
Contributor Author

@derpsteb Hi there. Could you please confirm whether this pull request looks good? Thank you so much!

@larrydewey larrydewey requested a review from derpsteb May 21, 2024 16:37
Copy link
Member

@derpsteb derpsteb left a comment

Choose a reason for hiding this comment

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

Awesome. Thanks for the patch. Couldn't test this but lgtm. Sorry for the delay, currently OOO. Feel free to merge.

Signed-off-by: Jag Raman <jraman567@gmail.com>
@jraman567
Copy link
Contributor Author

@derpsteb Thank you for approving!

The following commit conflicts with my pull request, and I just fixed it:
7ac59e8

@jraman567
Copy link
Contributor Author

@derpsteb Could you please merge this pull request?

@derpsteb
Copy link
Member

Closing this one as resolved by #5 .
I only realized now that I had "rebase and merge" selected and not "create merge commit". Thus, github rightfully complained that some commits are conflicting.
Anyways. Hope it works now.

@derpsteb derpsteb closed this May 30, 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.

2 participants