]> www.infradead.org Git - users/jedix/linux-maple.git/commit
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)
committerAlejandro Jimenez <alejandro.j.jimenez@oracle.com>
Mon, 11 Dec 2017 23:59:57 +0000 (15:59 -0800)
commit5a61ed36970e0590ea16d1cee8c14e16b50e7b73
tree8a1a98ab08ff07a8ccd24869f2cea5286adf7a6e
parent84310a408279ca55b7bc7de43eae6847a03058fa
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>
(cherry picked from commit 0d6dd2ff8206dc1da3428d5b1611f6304d481dab)

Orabug: 27146591

Signed-off-by: Alejandro Jimenez <alejandro.j.jimenez@oracle.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
arch/x86/kvm/x86.c