Skip to content

RFC: in-kernel timer emulation changes

Marcelo Tosatti kvm 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest8 patches 14 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/8KVM: timer interface unificationarch/x86/kvm/i8254.c arch/x86/kvm/i8254.h arch/x86/kvm/irq.c +5 more+121 -1231 reply
2/8KVM: move lapic timer ack to EOI handlerarch/x86/kvm/lapic.c+6 -40 replies
3/8KVM: x86: per-vcpu timer listarch/x86/include/asm/kvm_host.h arch/x86/kvm/kvm_timer.h arch/x86/kvm/timer.c +1 more+7 -00 replies
4/8KVM: x86: replace hrtimer based timer emulationarch/x86/include/asm/kvm_host.h arch/x86/kvm/i8254.c arch/x86/kvm/irq.c +9 more+240 -21412 replies
5/8KVM: timer: honor noreinject tunablearch/x86/kvm/timer.c+17 -00 replies
6/8KVM: timer: optimize next_timer_event and vcpu_arm_exitarch/x86/kvm/timer.c arch/x86/kvm/x86.c+8 -50 replies
7/8KVM: PIT: removed unused codearch/x86/kvm/i8254.c arch/x86/kvm/i8254.h+1 -110 replies
8/8kvmctl: time testcasekvm/user/config-x86-common.mak kvm/user/config-x86_64.mak kvm/user/test/x86/io.h +1 more+806 -10 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [patch 0/8] RFC: in-kernel timer emulation changes

This still needs to survive kvm-autotest, posting early for comments.

It replaces hrtimer based emulation with ktime_t comparisons on guest entry (avoids host load when guests are scheduled out, removes a spinlock acquision on entry (i8254.c's inject_lock), and makes future improvements easier).