Skip to content

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

Merged
Matt LaFayette (Kurjanowicz) (mattkur) merged 1 commit into
microsoft:release/1.8.2607from
mattkur:cherrypick/release/1.8.2607/pr-3965
Aug 4, 2026
Merged

loader/uefi: fix uefi enlightened snp cpuid page generation (#3965)#4130
Matt LaFayette (Kurjanowicz) (mattkur) merged 1 commit into
microsoft:release/1.8.2607from
mattkur:cherrypick/release/1.8.2607/pr-3965

Conversation

@mattkur

Copy link
Copy Markdown
Contributor

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.

…t#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.

(cherry picked from commit c0f7e23)
Copilot AI review requested due to automatic review settings July 31, 2026 18:47
@github-actions github-actions Bot added the release_1.8.2607 Targets the release/1.8.2607 branch. label Jul 31, 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

Fixes a long-standing bug in UEFI SNP CPUID page generation for the “enlightened SNP” path by populating the correct CPUID input subleaf field. This brings the UEFI loader’s CPUID page construction in line with the existing paravisor/OpenHCL behavior.

Changes:

  • Correctly writes the required CPUID subleaf value into ecx_in (instead of incorrectly writing it into eax_out).
  • Ensures generated HV_PSP_CPUID_PAGE entries contain the expected CPUID input tuple (eax_in, ecx_in) while leaving outputs zeroed for the hypervisor to fill.

@github-actions

github-actions Bot commented Aug 1, 2026

Copy link
Copy Markdown

@mattkur
Matt LaFayette (Kurjanowicz) (mattkur) merged commit f191f85 into microsoft:release/1.8.2607 Aug 4, 2026
65 checks passed
@mattkur
Matt LaFayette (Kurjanowicz) (mattkur) deleted the cherrypick/release/1.8.2607/pr-3965 branch August 4, 2026 16:54
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.

4 participants