Skip to content

Cpuid passthrough mutable fields#77

Merged
olivereanderson merged 2 commits intocyberus-technology:gardenlinuxfrom
olivereanderson:cpuid-passthrough-mutable-fields
Feb 23, 2026
Merged

Cpuid passthrough mutable fields#77
olivereanderson merged 2 commits intocyberus-technology:gardenlinuxfrom
olivereanderson:cpuid-passthrough-mutable-fields

Conversation

@olivereanderson
Copy link

@olivereanderson olivereanderson commented Feb 6, 2026

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.

@olivereanderson olivereanderson self-assigned this Feb 6, 2026
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
@olivereanderson olivereanderson force-pushed the cpuid-passthrough-mutable-fields branch from 97fac64 to 5060bc3 Compare February 23, 2026 16:47
@olivereanderson olivereanderson enabled auto-merge (rebase) February 23, 2026 16:49
@olivereanderson olivereanderson merged commit 2a174d0 into cyberus-technology:gardenlinux Feb 23, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants