KVM: x86: always fill in vcpu->arch.hv_clock
authorPaolo Bonzini <pbonzini@redhat.com>
Thu, 1 Sep 2016 12:20:09 +0000 (14:20 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 20 Sep 2016 07:25:53 +0000 (09:25 +0200)
commit0d6dd2ff8206dc1da3428d5b1611f6304d481dab
treeab57c347d5c17207d9fb0a322ab4a2fe27aa16c7
parent4f5758fc67607b915c7513baf0438a35a5fc457c
KVM: x86: always fill in vcpu->arch.hv_clock

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.

Reviewed-by: Roman Kagan <rkagan@virtuozzo.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/x86.c