]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
x86/cpufeatures: Add a CPU feature bit for MSR immediate form instructions
authorXin Li <xin@zytor.com>
Tue, 5 Aug 2025 20:22:19 +0000 (13:22 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 19 Aug 2025 18:59:44 +0000 (11:59 -0700)
commit3c7cb84145336721eddc86982532df84bbc80853
tree5d480c891ee15c15e5614414a6a0f9517eb36fdf
parent6c3d4b917995a17f515943ccd39ba11b81753b0d
x86/cpufeatures: Add a CPU feature bit for MSR immediate form instructions

The immediate form of MSR access instructions are primarily motivated
by performance, not code size: by having the MSR number in an immediate,
it is available *much* earlier in the pipeline, which allows the
hardware much more leeway about how a particular MSR is handled.

Use a scattered CPU feature bit for MSR immediate form instructions.

Suggested-by: Borislav Petkov (AMD) <bp@alien8.de>
Signed-off-by: Xin Li (Intel) <xin@zytor.com>
Link: https://lore.kernel.org/r/20250805202224.1475590-2-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/cpufeatures.h
arch/x86/kernel/cpu/scattered.c