Skip to content

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

Merged
Ming-Wei Shih (mingweishih) merged 2 commits into
microsoft:release/1.8.2607from
mingweishih:fix_family_id_1.8.2607
Aug 10, 2026
Merged

snp: update family id and image id that to be shared across OpenHCL versions (#4183)#4185
Ming-Wei Shih (mingweishih) merged 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 thread vm/loader/igvmfilegen/src/snp_id_block.rs
Comment thread vm/loader/igvmfilegen/src/snp_id_block.rs
@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

@mattkur

Copy link
Copy Markdown
Contributor

Given that this is an SNP-specific change, please look at the failed SNP tests and confirm that this change did not cause or exacerbate the failures.

@mingweishih Ming-Wei Shih (mingweishih) changed the title snp: update family id that to be shared across OpenHCL verions (#4183) snp: update family id and image id that to be shared across OpenHCL verions (#4183) Aug 10, 2026
@mingweishih

Copy link
Copy Markdown
Contributor Author

Given that this is an SNP-specific change, please look at the failed SNP tests and confirm that this change did not cause or exacerbate the failures.

all green

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.

Approving the clean cherry pick, not commenting on the righteousness of the change.

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.

Something's off with our scripts detecting this; one moment

@mattkur Matt LaFayette (Kurjanowicz) (mattkur) changed the title snp: update family id and image id that to be shared across OpenHCL verions (#4183) snp: update family id and image id that to be shared across OpenHCL versions (#4183) Aug 10, 2026

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.

Good to go

@mingweishih
Ming-Wei Shih (mingweishih) merged commit e7ae29f into microsoft:release/1.8.2607 Aug 10, 2026
125 of 129 checks passed
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