diff options
author | Nicolai Stange <nstange@suse.de> | 2018-07-21 22:35:28 +0200 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2018-08-05 09:53:11 +0200 |
commit | 5b6ccc6c3b1a477fbac9ec97a0b4c1c48e765209 (patch) | |
tree | a3bd719540b0902157da8d803444262658e71c17 /arch/x86/include | |
parent | 427362a142441f08051369db6fbe7f61c73b3dca (diff) |
x86/KVM/VMX: Move the l1tf_flush_l1d test to vmx_l1d_flush()
Currently, vmx_vcpu_run() checks if l1tf_flush_l1d is set and invokes
vmx_l1d_flush() if so.
This test is unncessary for the "always flush L1D" mode.
Move the check to vmx_l1d_flush()'s conditional mode code path.
Notes:
- vmx_l1d_flush() is likely to get inlined anyway and thus, there's no
extra function call.
- This inverts the (static) branch prediction, but there hadn't been any
explicit likely()/unlikely() annotations before and so it stays as is.
Signed-off-by: Nicolai Stange <nstange@suse.de>
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'arch/x86/include')
0 files changed, 0 insertions, 0 deletions