diff options
author | Paolo Bonzini <[email protected]> | 2018-02-22 16:43:18 +0100 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2018-02-23 08:24:36 +0100 |
commit | 946fbbc13dce68902f64515b610eeb2a6c3d7a64 (patch) | |
tree | ed811ec9d486d9a589fd3d4ef3bd04620a3ab75f /lib/test-string_helpers.c | |
parent | ecb586bd29c99fb4de599dec388658e74388daad (diff) |
KVM/VMX: Optimize vmx_vcpu_run() and svm_vcpu_run() by marking the RDMSR path as unlikely()
vmx_vcpu_run() and svm_vcpu_run() are large functions, and giving
branch hints to the compiler can actually make a substantial cycle
difference by keeping the fast path contiguous in memory.
With this optimization, the retpoline-guest/retpoline-host case is
about 50 cycles faster.
Signed-off-by: Paolo Bonzini <[email protected]>
Reviewed-by: Jim Mattson <[email protected]>
Cc: David Woodhouse <[email protected]>
Cc: KarimAllah Ahmed <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Radim Krčmář <[email protected]>
Cc: Thomas Gleixner <[email protected]>
Cc: [email protected]
Cc: [email protected]
Link: http://lkml.kernel.org/r/[email protected]
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'lib/test-string_helpers.c')
0 files changed, 0 insertions, 0 deletions