]> git.ipfire.org Git - thirdparty/linux.git/commit
KVM: x86: Drop now-superflous setting of l1tf_flush_l1d in vcpu_run()
authorSean Christopherson <seanjc@google.com>
Wed, 22 May 2024 01:40:13 +0000 (18:40 -0700)
committerSean Christopherson <seanjc@google.com>
Tue, 11 Jun 2024 21:18:47 +0000 (14:18 -0700)
commit3dee3b187499b317a6587e2b8e9bf3d5050e5288
tree9ac513f93d6a1a87da39ae6d3920090bd9acbeda
parentef2e18ef37501888161b791e134c4572b28dbd70
KVM: x86: Drop now-superflous setting of l1tf_flush_l1d in vcpu_run()

Now that KVM unconditionally sets l1tf_flush_l1d in kvm_arch_vcpu_load(),
drop the redundant store from vcpu_run().  The flag is cleared only when
VM-Enter is imminent, deep below vcpu_run(), i.e. barring a KVM bug, it's
impossible for l1tf_flush_l1d to be cleared between loading the vCPU and
calling vcpu_run().

Acked-by: Kai Huang <kai.huang@intel.com>
Link: https://lore.kernel.org/r/20240522014013.1672962-7-seanjc@google.com
Signed-off-by: Sean Christopherson <seanjc@google.com>
arch/x86/kvm/vmx/vmx.c
arch/x86/kvm/x86.c