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 generation string handling #133

Merged
merged 5 commits into from
Feb 16, 2024
Merged

Conversation

tylerfanelli
Copy link
Member

No description provided.

@@ -108,7 +108,7 @@ impl CertTableEntry {
/// ```
///
#[cfg(target_os = "linux")]
pub fn uapi_to_vec_bytes(table: &Vec<UAPI::CertTableEntry>) -> Result<Vec<u8>, CertError> {
Copy link
Member Author

Choose a reason for hiding this comment

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

@larrydewey

clippy suggested this change. Of course we want to follow its suggestions mostly, but this would break API... drop it for now? It provides no functional change and isn't exactly necessary.

Copy link
Member

Choose a reason for hiding this comment

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

I think the change should be fine, but if it is breaking API, maybe make it part of a different PR?

@@ -108,7 +108,7 @@ impl CertTableEntry {
/// ```
///
#[cfg(target_os = "linux")]
pub fn uapi_to_vec_bytes(table: &Vec<UAPI::CertTableEntry>) -> Result<Vec<u8>, CertError> {
Copy link
Member

Choose a reason for hiding this comment

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

I think the change should be fine, but if it is breaking API, maybe make it part of a different PR?

@DGonzalezVillal
Copy link
Member

Everything else looks good to me

@tylerfanelli
Copy link
Member Author

@DGonzalezVillal I removed the commit as I would like this merged without needing a major release. We can make the API breaking change on the next major release.

@larrydewey
Copy link
Contributor

@tylerfanelli Where we will be doing a major release anyway because of the kernel changes, should we look at just adding this in? @DGonzalezVillal is working on a PR to remove the unnecessary methods/functions which are no longer needed.

@tylerfanelli
Copy link
Member Author

@larrydewey By "this change", you're talking about this correct?

@larrydewey
Copy link
Contributor

I was referring more to your PR.

@larrydewey
Copy link
Contributor

@tylerfanelli Can you rebase and add support for Bergamo and Siena?

@tylerfanelli
Copy link
Member Author

Sure, will do.

At times (most notably in attestation scenarios), the SEV generation
in which to attest with is specified via strings. Add a helper method to
parse the SEV generation from a given string.

Signed-off-by: Tyler Fanelli <[email protected]>
At times (notably during attestation), it is required to fetch
certificates from AMD's KDS. To do this, a title-cased string of the
current SEV generation needs to be specified. Create a helper method to
marshal this string.

Signed-off-by: Tyler Fanelli <[email protected]>
@tylerfanelli
Copy link
Member Author

@larrydewey Added Bergamo + Siena support.

@tylerfanelli
Copy link
Member Author

@DGonzalezVillal can you review?

Copy link
Member

@DGonzalezVillal DGonzalezVillal left a comment

Choose a reason for hiding this comment

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

lgtm

@tylerfanelli tylerfanelli merged commit ea7d002 into virtee:main Feb 16, 2024
15 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.

3 participants