
+ printk("kvm-clock: using sched offset of %llu cycles\n", + pv_time_ops.sched_clock = kvm_sched_clock_read + kvm_sched_clock_offset = kvm_clock_read() + pv_time_ops.sched_clock = kvm_clock_read +static inline void kvm_sched_clock_init(bool stable) + return kvm_clock_read() - kvm_sched_clock_offset +static cycle_t kvm_sched_clock_read(void) Static int parse_no_kvmclock(char -92,6 +93,29 static cycle_t kvm_clock_get_cycles(struct clocksource *cs) Static int msr_kvm_wall_clock = MSR_KVM_WALL_CLOCK Static int msr_kvm_system_time = MSR_KVM_SYSTEM_TIME

A problem could arise in case sched_clock isĮxpected to return the same value as get_cycles, but we should haveĪrch/x86/kernel/kvmclock.c | 46 +++++++++++++++++++++++++++++++++++-ġ file changed, 35 insertions(+), 11 deletions(-)ĭiff -git a/arch/x86/kernel/kvmclock.c b/arch/x86/kernel/kvmclock.c I presume we don't need to change kvm_clock_read instead of introducing Setting sched clock as stable based on PVCLOCK_TSC_STABLE_BIT might We should beīecause PVCLOCK_COUNTS_FROM_ZERO was enabled only on new hypervisors, We can achieve the same by selecting one read as the initial point.Ī simple subtraction will work unless the KVM clock count overflowsĮarlier (has smaller width) than scheduler's cycle count. The purpose of that flags was to start counting system time from 0 when Newer KVM won't be exposing PVCLOCK_COUNTS_FROM_ZERO anymore. Subject: x86: kvmclock: abolish PVCLOCK_COUNTS_FROM_ZEROĭate: Fri, 17:54:29 +0200 (The script is basically the github example with a few tweaks).X86: kvmclock: abolish PVCLOCK_COUNTS_FROM_ZERO - Radim Krčmář LKML Archive on help / color / mirror / Atom feed From: "Radim Krčmář" So i decided to create a shell script to both remove the existing git install and install git 2.9.0. I found some decent instructions on github ( here), but it pulled up a few errors. Unlike other Linux distributions you need to download the git source and compile it for RHEL - which is a bit daunting.

In fact its so old that some apps complain about it, the gitlens plugin for VSCode for example. Out of the box, Red Hat Enterprise Linux 7 (RHEL) comes with git version 1.8.3.1, which is quite old.
