Skip to content

cli: extrapolate vCPU launch measurements from single-cpu value#2344

Merged
charludo merged 4 commits into
mainfrom
ch/embedded-measurements-with-gotool
May 11, 2026
Merged

cli: extrapolate vCPU launch measurements from single-cpu value#2344
charludo merged 4 commits into
mainfrom
ch/embedded-measurements-with-gotool

Conversation

@charludo
Copy link
Copy Markdown
Collaborator

No description provided.

@charludo charludo added the breaking change A user-affecting breaking change label Apr 23, 2026
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 23, 2026

PR Preview Action v1.8.1
Preview removed because the pull request was closed.
2026-05-11 13:59 UTC

@charludo charludo marked this pull request as draft April 24, 2026 06:30
@charludo charludo force-pushed the ch/embedded-measurements-with-gotool branch from 390e2fe to 5944551 Compare April 24, 2026 11:59
@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 24, 2026

Do the documentation changes need to be backported?

Changes to /docs/docs won't be visible until the next release.
If you are fixing something in the docs that should be immediately visible, the changes needs to be made to both /docs/docs and /docs/versioned_docs/version-X.Y, where X.Y is the version of the latest minor release.
This can be done in this same PR.

  • Yes, this should be backported to the current version of the docs.
  • No, the PR only contains docs changes relevant for future versions.

@charludo charludo added feature Shiny new feature for our users and removed breaking change A user-affecting breaking change labels Apr 24, 2026
@charludo charludo marked this pull request as ready for review April 24, 2026 12:12
@charludo
Copy link
Copy Markdown
Collaborator Author

charludo commented Apr 24, 2026

Comment thread packages/by-name/contrast/snp-ap-eip/package.nix
Comment thread tools/sev-snp-measure-go/main.go Outdated
Comment thread cli/cmd/generate.go
// In unit tests the embedded ap-eip.hex is a placeholder, so we skip
// using the value. This means we fall back to assuming the launch digest to be exact.
if apEIP, err := parsedAPEIP(); err != nil {
log.Warn("AP EIP not available; falling back to pre-computed launch digests", "err", err)
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

What kind of situation may lead to this?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

The AP EID not being available, you mean? As the comment says, unit tests (or more precisely, unit tests ran with go test), since the ap-eid.hex file gets populated only during nix build. Pretty sure we have/had exceptions like this for the embedded reference values as well, since they have the same issue.

Comment thread cli/cmd/generate.go Outdated
Comment thread cli/cmd/generate.go Outdated
Comment thread internal/attestation/snp/validator.go Outdated
Comment thread internal/manifest/manifest.go
Comment thread cli/verifier/cpu_count_valid.go Outdated
@charludo charludo force-pushed the ch/embedded-measurements-with-gotool branch from 5944551 to cdefe6c Compare May 8, 2026 05:57
@charludo
Copy link
Copy Markdown
Collaborator Author

charludo commented May 8, 2026

@charludo charludo requested a review from burgerdev May 8, 2026 09:28
Copy link
Copy Markdown
Member

@burgerdev burgerdev left a comment

Choose a reason for hiding this comment

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

Thanks!

@burgerdev burgerdev added this to the v1.21.0 milestone May 11, 2026
@charludo charludo force-pushed the ch/embedded-measurements-with-gotool branch from cdefe6c to 481a419 Compare May 11, 2026 11:01
@charludo charludo force-pushed the ch/embedded-measurements-with-gotool branch from 481a419 to e043d75 Compare May 11, 2026 11:25
@charludo charludo merged commit 9c0d96a into main May 11, 2026
18 checks passed
@charludo charludo deleted the ch/embedded-measurements-with-gotool branch May 11, 2026 13:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

feature Shiny new feature for our users

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants