]> git.ipfire.org Git - thirdparty/linux.git/commit
x86/bugs: Use an x86 feature to track the MMIO Stale Data mitigation
authorSean Christopherson <seanjc@google.com>
Thu, 13 Nov 2025 23:37:41 +0000 (15:37 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 19 Nov 2025 00:22:42 +0000 (16:22 -0800)
commitf6106d41ec84e552a5e8adda1f8741cab96a5425
treed3de548506ade6e807ecaa6916e4475f6cc16d15
parentafb99ffbd5825bfbc88e8052bc5514e6ebdfec5e
x86/bugs: Use an x86 feature to track the MMIO Stale Data mitigation

Convert the MMIO Stale Data mitigation tracking from a static branch into
an x86 feature flag so that it can be used via ALTERNATIVE_2 in KVM.

No functional change intended.

Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Reviewed-by: Brendan Jackman <jackmanb@google.com>
Link: https://patch.msgid.link/20251113233746.1703361-5-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/include/asm/cpufeatures.h
arch/x86/include/asm/nospec-branch.h
arch/x86/kernel/cpu/bugs.c
arch/x86/kvm/mmu/spte.c
arch/x86/kvm/vmx/vmx.c