Skip to content

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

Merged
Ming-Wei Shih (mingweishih) merged 1 commit into
microsoft:mainfrom
mingweishih:fix_family_id
Aug 7, 2026
Merged

snp: update family id that to be shared across OpenHCL verions#4183
Ming-Wei Shih (mingweishih) merged 1 commit into
microsoft:mainfrom
mingweishih:fix_family_id

Conversation

@mingweishih

Copy link
Copy Markdown
Contributor

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

@mingweishih
Ming-Wei Shih (mingweishih) requested a review from a team as a code owner August 6, 2026 23:59
Copilot AI lite review requested due to automatic review settings August 6, 2026 23:59
@mingweishih Ming-Wei Shih (mingweishih) added the backport_1.8.2607 Change should be backported to the release/1.8.2607 branch label Aug 6, 2026
Comment thread vm/loader/igvmfilegen/src/snp_id_block.rs Outdated

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

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Updates the SNP family ID constant to remove version-specific bytes so the attestation “family id” is consistent across OpenHCL versions.

Changes:

  • Modify SNP_FAMILY_ID byte sequence to a version-independent value.

Comment thread vm/loader/igvmfilegen/src/snp_id_block.rs
Comment thread vm/loader/igvmfilegen/src/snp_id_block.rs

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 1 comment.

Suppressed comments (1)

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

  • SNP_IMAGE_ID is now set to the ASCII bytes for "openhcl" (NUL-padded), but the pinned-bytes unit test in snp_id_block_constants_byte_identity still asserts *b"underhill\0\0\0\0\0\0\0", which will fail. Also, the doc comment still says "OpenHCL/Underhill" even though the new identifier is no longer "underhill"; consider updating the wording to match the new value (e.g., "OpenHCL guests").
/// SNP image identifier for OpenHCL/Underhill guests.
pub const SNP_IMAGE_ID: [u8; 16] = [
    b'o', b'p', b'e', b'n', b'h', b'c', b'l', 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00,
];

Comment thread vm/loader/igvmfilegen/src/snp_id_block.rs
- Set SNP family ID to the OpenHCL byte scheme and document the layout convention: byte[3]=0x01; all other bytes reserved as 0x00.
- Set SNP image ID to openhcl with explicit 16-byte representation.
- Update SNP ID block unit-test identity expectations accordingly.

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

@mingweishih
Ming-Wei Shih (mingweishih) merged commit 75e780a into microsoft:main Aug 7, 2026
68 of 69 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backport_1.8.2607 Change should be backported to the release/1.8.2607 branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants