path: root/virt
diff options
authorWanpeng Li <>2021-05-18 05:00:35 -0700
committerPaolo Bonzini <>2021-05-27 07:45:58 -0400
commit9805cf03fdb6828091fe09e4ef0fb544fca3eaf6 (patch)
treea51918d68d2f6c189ac24c3a1d6bf4787c5b5880 /virt
parentfb0f94794bb7558c078ce37b1a6e30d881fd7888 (diff)
KVM: LAPIC: Narrow the timer latency between wait_lapic_expire and world switch
Let's treat lapic_timer_advance_ns automatic tuning logic as hypervisor overhead, move it before wait_lapic_expire instead of between wait_lapic_expire and the world switch, the wait duration should be calculated by the up-to-date guest_tsc after the overhead of automatic tuning logic. This patch reduces ~30+ cycles for kvm-unit-tests/tscdeadline-latency when testing busy waits. Signed-off-by: Wanpeng Li <> Message-Id: <> Reviewed-by: Sean Christopherson <> Signed-off-by: Paolo Bonzini <>
Diffstat (limited to 'virt')
0 files changed, 0 insertions, 0 deletions