Skip to content

loader/uefi: fix uefi enlightened snp cpuid page generation - #3965

Merged
Chris Oo (chris-oo) merged 1 commit into
microsoft:mainfrom
chris-oo:uefi-cpuid-page
Jul 17, 2026
Merged

loader/uefi: fix uefi enlightened snp cpuid page generation#3965
Chris Oo (chris-oo) merged 1 commit into
microsoft:mainfrom
chris-oo:uefi-cpuid-page

Conversation

@chris-oo

Copy link
Copy Markdown
Member

This seemed to have been a bug forever, but this configuration is not well tested. Now matches what we do for openhcl in paravisor.rs.

Copilot AI review requested due to automatic review settings July 17, 2026 21:21
@chris-oo
Chris Oo (chris-oo) requested a review from a team as a code owner July 17, 2026 21:21
@smalis-msft

Copy link
Copy Markdown
Contributor

Whoops lol

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

Fixes construction of the AMD SEV-SNP CPUID page for the UEFI loader by correctly populating the CPUID input subleaf value (ecx_in) rather than incorrectly writing it into an output register field. This aligns UEFI’s behavior with the existing paravisor CPUID page generation logic.

Changes:

  • Write required_leaf.ecx to HV_PSP_CPUID_LEAF.ecx_in instead of eax_out when building the SNP CPUID page.
  • Keeps CPUID page initialization consistent with the pattern used in vm/loader/src/paravisor.rs.

@chris-oo
Chris Oo (chris-oo) enabled auto-merge (squash) July 17, 2026 21:28
@chris-oo
Chris Oo (chris-oo) merged commit c0f7e23 into microsoft:main Jul 17, 2026
69 checks passed
@chris-oo
Chris Oo (chris-oo) deleted the uefi-cpuid-page branch July 17, 2026 22:33
@github-actions

Copy link
Copy Markdown

@mebersol Mike Ebersol (mebersol) added the backport_1.8.2607 Change should be backported to the release/1.8.2607 branch label Jul 22, 2026
Matt LaFayette (Kurjanowicz) (mattkur) added a commit that referenced this pull request Aug 4, 2026
…4130)

Clean cherry pick of PR #3965

This seemed to have been a bug forever, but this configuration is not
well tested. Now matches what we do for openhcl in paravisor.rs.

Co-authored-by: Chris Oo <cho@microsoft.com>
@benhillis

Copy link
Copy Markdown
Member

Backported to release/1.8.2607 in #4130

@benhillis Ben Hillis (benhillis) added backported_1.8.2607 PR that has been backported to release/1.8.2607 and removed backport_1.8.2607 Change should be backported to the release/1.8.2607 branch labels Aug 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

backported_1.8.2607 PR that has been backported to release/1.8.2607

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants