This is the backport of commit 867cefb4cb1012 ("xen: Fix x86 sched_clock() interface for xen") for stable 4.14 kernel. This series includes the upstream patches said commit depends on.
Juergen Gross (6): ptp_kvm: probe for kvm guest availability x86/pvclock: add setter for pvclock_pvti_cpu0_va x86/xen/time: set pvclock flags on xen_time_init() x86/xen/time: setup vcpu 0 time info page x86/xen/time: Output xen sched_clock time from 0 xen: Fix x86 sched_clock() interface for xen
arch/x86/entry/vdso/vma.c | 2 +- arch/x86/include/asm/pvclock.h | 19 ++++--- arch/x86/kernel/kvmclock.c | 7 +-- arch/x86/kernel/pvclock.c | 14 +++++ arch/x86/xen/suspend.c | 4 ++ arch/x86/xen/time.c | 118 ++++++++++++++++++++++++++++++++++++++- arch/x86/xen/xen-ops.h | 2 + drivers/ptp/ptp_kvm.c | 5 +- drivers/xen/events/events_base.c | 2 +- include/xen/interface/vcpu.h | 42 ++++++++++++++ 10 files changed, 194 insertions(+), 21 deletions(-)