Re: [PATCH] KVM: x86: update master clock before computing kvmclock_offset

2017-05-30 Thread Marcelo Tosatti
On Tue, May 16, 2017 at 10:50:00PM +0200, Radim Krčmář wrote: > kvm master clock usually has a different frequency than the kernel boot > clock. This is not a problem until the master clock is updated; > update uses the current kernel boot clock to compute new kvm clock, > which erases any kvm

Re: [PATCH] KVM: x86: update master clock before computing kvmclock_offset

2017-05-30 Thread Marcelo Tosatti
On Tue, May 16, 2017 at 10:50:00PM +0200, Radim Krčmář wrote: > kvm master clock usually has a different frequency than the kernel boot > clock. This is not a problem until the master clock is updated; > update uses the current kernel boot clock to compute new kvm clock, > which erases any kvm

Re: [PATCH] KVM: x86: update master clock before computing kvmclock_offset

2017-05-17 Thread Paolo Bonzini
> I regret not pressing harder when we sanctified this frequency > difference ... too late to make kvm clock follow the boot clock? :) > --- > arch/x86/kvm/x86.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index

Re: [PATCH] KVM: x86: update master clock before computing kvmclock_offset

2017-05-17 Thread Paolo Bonzini
> I regret not pressing harder when we sanctified this frequency > difference ... too late to make kvm clock follow the boot clock? :) > --- > arch/x86/kvm/x86.c | 8 +++- > 1 file changed, 7 insertions(+), 1 deletion(-) > > diff --git a/arch/x86/kvm/x86.c b/arch/x86/kvm/x86.c > index

[PATCH] KVM: x86: update master clock before computing kvmclock_offset

2017-05-16 Thread Radim Krčmář
kvm master clock usually has a different frequency than the kernel boot clock. This is not a problem until the master clock is updated; update uses the current kernel boot clock to compute new kvm clock, which erases any kvm clock cycles that might have built up due to frequency difference over a

[PATCH] KVM: x86: update master clock before computing kvmclock_offset

2017-05-16 Thread Radim Krčmář
kvm master clock usually has a different frequency than the kernel boot clock. This is not a problem until the master clock is updated; update uses the current kernel boot clock to compute new kvm clock, which erases any kvm clock cycles that might have built up due to frequency difference over a