loader/uefi: fix uefi enlightened snp cpuid page generation (#3965) - #4130
Merged
Matt LaFayette (Kurjanowicz) (mattkur) merged 1 commit intoAug 4, 2026
Conversation
Matt LaFayette (Kurjanowicz) (mattkur)
requested a review
from a team
as a code owner
July 31, 2026 18:47
Copilot started reviewing on behalf of
Matt LaFayette (Kurjanowicz) (mattkur)
July 31, 2026 18:48
View session
Contributor
There was a problem hiding this comment.
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 intoeax_out). - Ensures generated
HV_PSP_CPUID_PAGEentries contain the expected CPUID input tuple(eax_in, ecx_in)while leaving outputs zeroed for the hypervisor to fill.
Steven Malis (smalis-msft)
approved these changes
Aug 4, 2026
Matt LaFayette (Kurjanowicz) (mattkur)
merged commit Aug 4, 2026
f191f85
into
microsoft:release/1.8.2607
65 checks passed
Matt LaFayette (Kurjanowicz) (mattkur)
deleted the
cherrypick/release/1.8.2607/pr-3965
branch
August 4, 2026 16:54
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.