Commit 3dee3b1
committed
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>1 parent ef2e18e commit 3dee3b1
2 files changed
Lines changed: 4 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6673 | 6673 | | |
6674 | 6674 | | |
6675 | 6675 | | |
6676 | | - | |
6677 | | - | |
6678 | | - | |
| 6676 | + | |
| 6677 | + | |
| 6678 | + | |
| 6679 | + | |
6679 | 6680 | | |
6680 | 6681 | | |
6681 | 6682 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11253 | 11253 | | |
11254 | 11254 | | |
11255 | 11255 | | |
11256 | | - | |
11257 | 11256 | | |
11258 | 11257 | | |
11259 | 11258 | | |
| |||
0 commit comments