]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: x86: Ignore cpuid faulting in SMM
authorJim Mattson <jmattson@google.com>
Tue, 10 Feb 2026 23:45:42 +0000 (15:45 -0800)
committerSean Christopherson <seanjc@google.com>
Tue, 3 Mar 2026 00:01:44 +0000 (16:01 -0800)
commit690dc03859e7907bc995f389618c748619559477
treeb06dab846e6cb1dfb2cc2e0629c7db53ad2d87af
parente907b4e72488f1df878e7e8acf88d23e49cb3ca7
KVM: x86: Ignore cpuid faulting in SMM

The Intel Virtualization Technology FlexMigration Application Note says,
"When CPUID faulting is enabled, all executions of the CPUID instruction
outside system-management mode (SMM) cause a general-protection exception
(#GP(0)) if the current privilege level (CPL) is greater than 0."

Always allow the execution of CPUID in SMM.

Fixes: db2336a80489 ("KVM: x86: virtualize cpuid faulting")
Signed-off-by: Jim Mattson <jmattson@google.com>
Link: https://patch.msgid.link/20260210234613.1383279-1-jmattson@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/cpuid.c
arch/x86/kvm/emulate.c