Skip to content

pv clock misc fixes

Glauber Costa kvm lkml xen-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest5 patches 69 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/5Add a global synchronization point for pvclockarch/x86/kernel/pvclock.c+23 -062 replies
2/5change msr numbers for kvmclockarch/x86/include/asm/kvm_para.h arch/x86/kvm/x86.c+12 -31 reply
3/5Try using new kvm clock msrsarch/x86/include/asm/kvm_para.h arch/x86/kernel/kvmclock.c+51 -211 reply
4/5export new cpuid KVM_CAParch/x86/kvm/x86.c include/linux/kvm.h+7 -03 replies
5/5add documentation about kvmclockDocumentation/kvm/kvmclock.txt+138 -02 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/5] pv clock misc fixes

Hello folks,

In this series, I present a couple of fixes for kvmclock.
In patch 1, a guest-side fix is proposed for a problem that is biting us for quite a while now. the tsc inside VMs does not seem to be that good, (up to now, only single-socket nehalems were stable enough), and we're seeing small (but nevertheless wrong) time warps inside SMP guests. I am proposing the fix to reside on common code in pvclock.c, but would be good to hear Jeremy on this.

On the other 3 patches, I change kvmclock MSR numbers in a compatible fashion. Both MSR sets will be supported for a while.

Patch 5 adds documentation about kvmclock, which to date, we lacked.

Glauber Costa (5):
Add a global synchronization point for pvclock
change msr numbers for kvmclock
Try using new kvm clock msrs
export new cpuid KVM_CAP
add documentation about kvmclock

 Documentation/kvm/kvmclock.txt  |  138 +++++++++++++++++++++++++++++++++++++++
 arch/x86/include/asm/kvm_para.h |   12 +++-
 arch/x86/kernel/kvmclock.c      |   68 +++++++++++++------
 arch/x86/kernel/pvclock.c       |   23 +++++++
 arch/x86/kvm/x86.c              |   13 ++++-
 include/linux/kvm.h             |    1 +
 6 files changed, 231 insertions(+), 24 deletions(-)
 create mode 100644 Documentation/kvm/kvmclock.txt