On 22/04/2016 15:32, Roman Kagan wrote: > The first value is derived from the kvm_clock's tsc_to_system_mul and > tsc_shift, and matches hosts's vcpu->hw_tsc_khz. The second is > calibrated using emulated HPET. The difference is those +14 ppm. > > This is on i7-2600, invariant TSC present, TSC scaling not present. > > I'll dig further but I'd appreciate any comment on whether it was within > tolerance or not. The solution to the bug is to change the Hyper-V reference time MSR to use the same formula as the Hyper-V TSC-based clock. Likewise, KVM_GET_CLOCK and KVM_SET_CLOCK should not use ktime_get_ns(). Paolo -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html