Skip to content

snp: update family id that to be shared across OpenHCL verions (#4183) - #4185

Open
Ming-Wei Shih (mingweishih) wants to merge 2 commits into
microsoft:release/1.8.2607from
mingweishih:fix_family_id_1.8.2607
Open

snp: update family id that to be shared across OpenHCL verions (#4183)#4185
Ming-Wei Shih (mingweishih) wants to merge 2 commits into
microsoft:release/1.8.2607from
mingweishih:fix_family_id_1.8.2607

Conversation

@mingweishih

Copy link
Copy Markdown
Contributor

Remove the version-specific value from family id, making it consistent across all OpenHCL versions

Clean cherry pick of #4183

…soft#4183)

Remove the version-specific value from family id, making it consistent
across all OpenHCL versions

(cherry picked from commit 75e780a)
Copilot AI lite review requested due to automatic review settings August 7, 2026 15:55
@mingweishih
Ming-Wei Shih (mingweishih) requested a review from a team as a code owner August 7, 2026 15:55
@mingweishih Ming-Wei Shih (mingweishih) added the release_1.8.2607 Targets the release/1.8.2607 branch. label Aug 7, 2026

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

This PR updates the SEV-SNP identity constants emitted into OpenHCL SNP ID blocks so the “family id” no longer encodes a version-specific value, aiming to keep the attestation identity consistent across OpenHCL versions.

Changes:

  • Update SNP_FAMILY_ID bytes to a reserved-zero layout with a single OpenHCL discriminator byte.
  • Rename/update the SNP_IMAGE_ID constant value from underhill to openhcl.
  • Update the unit test that pins these constants’ exact byte identities.
Suppressed comments (1)

vm/loader/igvmfilegen/src/snp_id_block.rs:54

  • SNP_IMAGE_ID is also part of the externally-consumed SNP ID block payload (same as SNP_FAMILY_ID). Adding the same “attestation identity” warning here would make the risk of changing this constant more obvious to future editors.
/// SNP image identifier for OpenHCL guests.
pub const SNP_IMAGE_ID: [u8; 16] = *b"openhcl\0\0\0\0\0\0\0\0\0";

Comment on lines +53 to +54
/// SNP image identifier for OpenHCL guests.
pub const SNP_IMAGE_ID: [u8; 16] = *b"openhcl\0\0\0\0\0\0\0\0\0";
Comment on lines +44 to +46
/// Layout convention:
/// - `byte[3] == 0x01` identifies OpenHCL.
/// - all other bytes are reserved and must remain `0x00`.
@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Copilot AI review requested due to automatic review settings August 7, 2026 21:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@github-actions

github-actions Bot commented Aug 7, 2026

Copy link
Copy Markdown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release_1.8.2607 Targets the release/1.8.2607 branch.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants