From mboxrd@z Thu Jan 1 00:00:00 1970 From: Paolo Bonzini Subject: [PATCH 0/4] kvmclock: improve accuracy Date: Mon, 8 Feb 2016 16:18:27 +0100 Message-ID: <1454944711-33022-1-git-send-email-pbonzini@redhat.com> Cc: mtosatti@redhat.com To: linux-kernel@vger.kernel.org, kvm@vger.kernel.org Return-path: Sender: linux-kernel-owner@vger.kernel.org List-Id: kvm.vger.kernel.org Currently kvmclock is obtaining the multiplier and shift value from the TSC kHz. These however are less accurate than the host kernel's clock, which includes corrections made through NTP. These patches change kvmclock to tick at the same frequency as the host kernel's clocksource (as obtained through the pvclock_gtod notifier). This is precise enough that the Hyper-V clock can be implemented on top of it. Paolo Bonzini (4): KVM: x86: rename argument to kvm_set_tsc_khz KVM: x86: rewrite handling of scaled TSC for kvmclock KVM: x86: pass kvm_get_time_scale arguments in hertz KVM: x86: track actual TSC frequency from the timekeeper struct arch/x86/include/asm/kvm_host.h | 3 +- arch/x86/kvm/x86.c | 73 +++++++++++++++++++++++++---------------- 2 files changed, 47 insertions(+), 29 deletions(-) -- 1.8.3.1