[Devel] [PATCH 00/16] add tsc_scale and fix VM pause/resume

Roman Kagan rkagan at virtuozzo.com
Fri Nov 11 00:47:35 PST 2016


From: Denis Plotnikov <dplotnikov at virtuozzo.com>

The set of patches:
1. adds tsc_scaling functionality for VMX
2. generalizes a number of functions responsible for tsc writing and
   reading
3. fix VM pause/resume issue #PSBM-54338 by switching to using
   of cached tsc_offset

Haozhong Zhang (12):
  KVM: x86: Collect information for setting TSC scaling ratio
  KVM: x86: Add a common TSC scaling ratio field in kvm_vcpu_arch
  KVM: x86: Add a common TSC scaling function
  KVM: x86: Replace call-back set_tsc_khz() with a common function
  KVM: x86: Replace call-back compute_tsc_offset() with a common
    function
  KVM: x86: Move TSC scaling logic out of call-back adjust_tsc_offset()
  KVM: x86: Move TSC scaling logic out of call-back read_l1_tsc()
  KVM: x86: Use the correct vcpu's TSC rate to compute time scale
  KVM: VMX: Enable and initialize VMX TSC scaling
  KVM: VMX: Setup TSC scaling ratio when a vcpu is loaded
  KVM: VMX: Use a scaled host TSC for guest readings of MSR_IA32_TSC
  KVM: VMX: Dump TSC multiplier in dump_vmcs()

Luiz Capitulino (2):
  kvm: x86: add tsc_offset field to struct kvm_vcpu_arch
  kvm: x86: drop read_tsc_offset()

Paolo Bonzini (2):
  KVM: x86: declare a few variables as __read_mostly
  KVM: x86: drop TSC offsetting kvm_x86_ops to fix KVM_GET/SET_CLOCK

 arch/x86/include/asm/kvm_host.h |  28 ++-----
 arch/x86/include/asm/vmx.h      |   4 +-
 arch/x86/kvm/hyperv.c           |   2 +-
 arch/x86/kvm/lapic.c            |   4 +-
 arch/x86/kvm/svm.c              | 144 +++----------------------------
 arch/x86/kvm/vmx.c              | 103 ++++++++---------------
 arch/x86/kvm/x86.c              | 182 ++++++++++++++++++++++++++++++++++------
 7 files changed, 214 insertions(+), 253 deletions(-)

-- 
2.7.4



More information about the Devel mailing list