Skip to content

Fix Turin cpuid#7748

Merged
achamayou merged 7 commits intomicrosoft:mainfrom
cjen1-msft:fix-turin-cpuid
Mar 18, 2026
Merged

Fix Turin cpuid#7748
achamayou merged 7 commits intomicrosoft:mainfrom
cjen1-msft:fix-turin-cpuid

Conversation

@cjen1-msft
Copy link
Contributor

Fix the Turin CPUID and also add a test to prevent future regressions.

@achamayou achamayou changed the title Fix turin cpuid Fix Turin cpuid Mar 18, 2026
@achamayou achamayou added auto-backport Automatically backport this PR to LTS branch 6.x-todo PRs which should be backported to 6.x labels Mar 18, 2026
@cjen1-msft cjen1-msft marked this pull request as ready for review March 18, 2026 11:25
@cjen1-msft cjen1-msft requested a review from a team as a code owner March 18, 2026 11:25
Copilot AI review requested due to automatic review settings March 18, 2026 11:25
@cjen1-msft cjen1-msft marked this pull request as draft March 18, 2026 11:25
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Fixes the SEV-SNP Turin CPUID encoding and adds a regression test to ensure CPUID<->product mappings remain consistent.

Changes:

  • Update Turin CPUID hex value returned by get_cpuid_of_snp_sev_product.
  • Add documentation links to AMD revision guides for each product’s CPUID mapping.
  • Simplify an exception-message assertion and add a new CPUID mapping roundtrip test.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
src/pal/test/snp_attestation_validation.cpp Refactors an exception assertion and adds a CPUID/product roundtrip regression test.
include/ccf/pal/sev_snp_cpuid.h Fixes Turin CPUID hex mapping and documents sources for the CPUID values.

You can also share your feedback on Copilot code review. Take the survey.

achamayou and others added 2 commits March 18, 2026 11:40
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
@achamayou achamayou marked this pull request as ready for review March 18, 2026 11:41
@achamayou achamayou merged commit e84dc59 into microsoft:main Mar 18, 2026
18 checks passed
cjen1-msft added a commit to cjen1-msft/CCF that referenced this pull request Mar 18, 2026
Co-authored-by: Amaury Chamayou <amaury@xargs.fr>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
cjen1-msft added a commit to cjen1-msft/CCF that referenced this pull request Mar 19, 2026
Co-authored-by: Amaury Chamayou <amaury@xargs.fr>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
achamayou added a commit that referenced this pull request Mar 19, 2026
) (#7752)

Co-authored-by: Eddy Ashton <ashton.eddy@gmail.com>
Co-authored-by: Amaury Chamayou <amaury@xargs.fr>
Co-authored-by: Amaury Chamayou <amchamay@microsoft.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

6.x-todo PRs which should be backported to 6.x auto-backport Automatically backport this PR to LTS branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants