Skip to content

pvclock vsyscall support + KVM hypervisor support

Marcelo Tosatti kvm 1 version New

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest15 patches 0 repliesNew

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15KVM: x86: retain pvclock guest stopped bit in guest memoryarch/x86/kvm/x86.c+13 -70 replies
2/15x86: pvclock: make sure rdtsc doesnt speculate out of regionarch/x86/kernel/pvclock.c+2 -20 replies
3/15x86: pvclock: remove pvclock_shadow_timearch/x86/kernel/pvclock.c+9 -460 replies
4/15x86: pvclock: create helper for pvclock data retrievalarch/x86/include/asm/pvclock.h arch/x86/kernel/pvclock.c+27 -130 replies
5/15x86: pvclock: fix flags usage racearch/x86/include/asm/pvclock.h arch/x86/kernel/pvclock.c+7 -30 replies
6/15x86: pvclock: introduce helper to read flagsarch/x86/include/asm/pvclock.h arch/x86/kernel/pvclock.c+14 -00 replies
7/15sched: add notifier for cross-cpu migrationsinclude/linux/sched.h kernel/sched/core.c+23 -00 replies
8/15x86: pvclock: generic pvclock vsyscall initializationarch/x86/Kconfig arch/x86/include/asm/clocksource.h arch/x86/include/asm/fixmap.h +2 more+106 -00 replies
9/15x86: kvm guest: pvclock vsyscall supportarch/x86/include/asm/kvm_guest.h arch/x86/kernel/kvm.c arch/x86/kernel/kvmclock.c+69 -00 replies
10/15x86: vsyscall: pass mode to gettime backendarch/x86/vdso/vclock_gettime.c+3 -30 replies
11/15x86: vdso: pvclock gettime supportarch/x86/include/asm/vsyscall.h arch/x86/vdso/vclock_gettime.c arch/x86/vdso/vgetcpu.c+83 -70 replies
12/15KVM: x86: introduce facility to support vsyscall pvclock, via MSRDocumentation/virtual/kvm/msr.txt arch/x86/include/asm/kvm_host.h arch/x86/include/asm/kvm_para.h +3 more+106 -270 replies
13/15KVM: x86: pass host_tsc to read_l1_tscarch/x86/include/asm/kvm_host.h arch/x86/kvm/lapic.c arch/x86/kvm/svm.c +2 more+9 -90 replies
14/15time: export time information for KVM pvclockinclude/linux/pvclock_gtod.h kernel/time/timekeeping.c+56 -00 replies
15/15KVM: x86: implement PVCLOCK_TSC_STABLE_BIT pvclock flagarch/x86/kvm/x86.c+110 -50 replies

Reviews trailers per patch

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

Read the v1 thread

Cover letter [patch 00/15] pvclock vsyscall support + KVM hypervisor support

This patchset, based on earlier work by Jeremy Fitzhardinge, implements paravirtual clock vsyscall support.

It should be possible to implement Xen support relatively easily.

It reduces clock_gettime from 500 cycles to 200 cycles on my testbox (including an mfence, that measurement).

NOTE: exporting pvclock tsc stable bit if the guest TSCs are not synchronized is incorrect, next version will have that fixed.

Please review.