kvmclock.c (c09c9dd2e9c732658c744a802101d5c34fedde22) kvmclock.c (dac16fba6fc590fa7239676b35ed75dae4c4cd2b)
1/* KVM paravirtual clock driver. A clocksource implementation
2 Copyright (C) 2008 Glauber de Oliveira Costa, Red Hat Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8

--- 31 unchanged lines hidden (view full) ---

40 return 0;
41}
42early_param("no-kvmclock", parse_no_kvmclock);
43
44/* The hypervisor will put information about time periodically here */
45static struct pvclock_vsyscall_time_info *hv_clock;
46static struct pvclock_wall_clock wall_clock;
47
1/* KVM paravirtual clock driver. A clocksource implementation
2 Copyright (C) 2008 Glauber de Oliveira Costa, Red Hat Inc.
3
4 This program is free software; you can redistribute it and/or modify
5 it under the terms of the GNU General Public License as published by
6 the Free Software Foundation; either version 2 of the License, or
7 (at your option) any later version.
8

--- 31 unchanged lines hidden (view full) ---

40 return 0;
41}
42early_param("no-kvmclock", parse_no_kvmclock);
43
44/* The hypervisor will put information about time periodically here */
45static struct pvclock_vsyscall_time_info *hv_clock;
46static struct pvclock_wall_clock wall_clock;
47
48struct pvclock_vsyscall_time_info *pvclock_pvti_cpu0_va(void)
49{
50 return hv_clock;
51}
52
48/*
49 * The wallclock is the time of day when we booted. Since then, some time may
50 * have elapsed since the hypervisor wrote the data. So we try to account for
51 * that with system time
52 */
53static void kvm_get_wallclock(struct timespec *now)
54{
55 struct pvclock_vcpu_time_info *vcpu_time;

--- 283 unchanged lines hidden ---
53/*
54 * The wallclock is the time of day when we booted. Since then, some time may
55 * have elapsed since the hypervisor wrote the data. So we try to account for
56 * that with system time
57 */
58static void kvm_get_wallclock(struct timespec *now)
59{
60 struct pvclock_vcpu_time_info *vcpu_time;

--- 283 unchanged lines hidden ---