Re: [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-19 Thread Roman Kagan
On Mon, Sep 19, 2016 at 01:39:10PM +0200, Paolo Bonzini wrote: > We will use it in the next patches for KVM_GET_CLOCK and as a basis for the > contents of the Hyper-V TSC page. Get the values from the Linux > timekeeper even if kvmclock is not enabled. > > Signed-off-by: Paolo Bonzini

Re: [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-19 Thread Roman Kagan
On Mon, Sep 19, 2016 at 01:39:10PM +0200, Paolo Bonzini wrote: > We will use it in the next patches for KVM_GET_CLOCK and as a basis for the > contents of the Hyper-V TSC page. Get the values from the Linux > timekeeper even if kvmclock is not enabled. > > Signed-off-by: Paolo Bonzini > --- >

[PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-19 Thread Paolo Bonzini
We will use it in the next patches for KVM_GET_CLOCK and as a basis for the contents of the Hyper-V TSC page. Get the values from the Linux timekeeper even if kvmclock is not enabled. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 109

[PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-19 Thread Paolo Bonzini
We will use it in the next patches for KVM_GET_CLOCK and as a basis for the contents of the Hyper-V TSC page. Get the values from the Linux timekeeper even if kvmclock is not enabled. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 109

Re: [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-02 Thread Roman Kagan
On Thu, Sep 01, 2016 at 05:26:12PM +0200, Paolo Bonzini wrote: > We will use it in the next patches for KVM_GET_CLOCK and as a basis for the > contents of the Hyper-V TSC page. Get the values from the Linux > timekeeper even if kvmclock is not enabled. > > Signed-off-by: Paolo Bonzini

Re: [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-02 Thread Roman Kagan
On Thu, Sep 01, 2016 at 05:26:12PM +0200, Paolo Bonzini wrote: > We will use it in the next patches for KVM_GET_CLOCK and as a basis for the > contents of the Hyper-V TSC page. Get the values from the Linux > timekeeper even if kvmclock is not enabled. > > Signed-off-by: Paolo Bonzini > --- >

Re: [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-02 Thread Paolo Bonzini
On 02/09/2016 15:31, Roman Kagan wrote: > > > > - if (!vcpu->pv_time_enabled) > > - return 0; > > Strictly speaking, you only need .hv_clock updated if either kvmclock or > tsc_ref_page is enabled, so you may want to still skip the calculations > otherwise. Yeah, but that's

Re: [PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-02 Thread Paolo Bonzini
On 02/09/2016 15:31, Roman Kagan wrote: > > > > - if (!vcpu->pv_time_enabled) > > - return 0; > > Strictly speaking, you only need .hv_clock updated if either kvmclock or > tsc_ref_page is enabled, so you may want to still skip the calculations > otherwise. Yeah, but that's

[PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-01 Thread Paolo Bonzini
We will use it in the next patches for KVM_GET_CLOCK and as a basis for the contents of the Hyper-V TSC page. Get the values from the Linux timekeeper even if kvmclock is not enabled. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 109

[PATCH 1/4] KVM: x86: always fill in vcpu->arch.hv_clock

2016-09-01 Thread Paolo Bonzini
We will use it in the next patches for KVM_GET_CLOCK and as a basis for the contents of the Hyper-V TSC page. Get the values from the Linux timekeeper even if kvmclock is not enabled. Signed-off-by: Paolo Bonzini --- arch/x86/kvm/x86.c | 109