]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
KVM: VMX: Bundle all L1 data cache flush mitigation code together
authorSean Christopherson <seanjc@google.com>
Thu, 13 Nov 2025 23:37:44 +0000 (15:37 -0800)
committerSean Christopherson <seanjc@google.com>
Wed, 19 Nov 2025 00:22:44 +0000 (16:22 -0800)
commit0abd9610d6c6996317262f1712c959d74ed08de6
treeeeff6ceb4c560ddfde5340c02373f0d03b2181a7
parentfc704b578976ed6a937f419e611d5ae92c939826
KVM: VMX: Bundle all L1 data cache flush mitigation code together

Move vmx_l1d_flush(), vmx_cleanup_l1d_flush(), and the vmentry_l1d_flush
param code up in vmx.c so that all of the L1 data cache flushing code is
bundled together.  This will allow conditioning the mitigation code on
CONFIG_CPU_MITIGATIONS=y with minimal #ifdefs.

No functional change intended.

Reviewed-by: Brendan Jackman <jackmanb@google.com>
Reviewed-by: Pawan Gupta <pawan.kumar.gupta@linux.intel.com>
Link: https://patch.msgid.link/20251113233746.1703361-8-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c