Cpuid passthrough mutable fields#77
Open
olivereanderson wants to merge 2 commits intocyberus-technology:gardenlinuxfrom
Open
Cpuid passthrough mutable fields#77olivereanderson wants to merge 2 commits intocyberus-technology:gardenlinuxfrom
olivereanderson wants to merge 2 commits intocyberus-technology:gardenlinuxfrom
Conversation
CPUID leaf 0x1 ECX[27] and 0x7 ECX[4] can change at runtime, hence it does not make sense to set their values in the CPU profile. Note that Section 21.1.5 of the Intel SDM Vol.1, mentions a few other mutable CPUID fields as well, but we deem it safe to leave them as the are. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com
We regenerate the CPU profiles to take the policy changes from the previous commit into account. Signed-off-by: Oliver Anderson <oliver.anderson@cyberus-technology.de> On-behalf-of: SAP oliver.anderson@sap.com
phip1611
approved these changes
Feb 6, 2026
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.
As I was reading through the Intel SDM I happened to stumble upon a section about runtime mutable CPUID fields
(Section 21.1.5 in Vol.1). This made me realize that we probably chose wrong policies for OSXSAVE and OSPKE.
There are a few more mutable fields mentioned in the manual, but we already spent some time finding and deliberately setting appropriate policies for those hence I think they can be left as is.