Loading arch/x86/include/asm/kvmclock.h 0 → 100644 +6 −0 Original line number Original line Diff line number Diff line #ifndef _ASM_X86_KVM_CLOCK_H #define _ASM_X86_KVM_CLOCK_H extern struct clocksource kvm_clock; #endif /* _ASM_X86_KVM_CLOCK_H */ arch/x86/kernel/kvmclock.c +4 −1 Original line number Original line Diff line number Diff line Loading @@ -28,6 +28,7 @@ #include <asm/x86_init.h> #include <asm/x86_init.h> #include <asm/reboot.h> #include <asm/reboot.h> #include <asm/kvmclock.h> static int kvmclock __ro_after_init = 1; static int kvmclock __ro_after_init = 1; static int msr_kvm_system_time = MSR_KVM_SYSTEM_TIME; static int msr_kvm_system_time = MSR_KVM_SYSTEM_TIME; Loading @@ -49,6 +50,7 @@ struct pvclock_vsyscall_time_info *pvclock_pvti_cpu0_va(void) { { return hv_clock; return hv_clock; } } EXPORT_SYMBOL_GPL(pvclock_pvti_cpu0_va); /* /* * The wallclock is the time of day when we booted. Since then, some time may * The wallclock is the time of day when we booted. Since then, some time may Loading Loading @@ -174,13 +176,14 @@ bool kvm_check_and_clear_guest_paused(void) return ret; return ret; } } static struct clocksource kvm_clock = { struct clocksource kvm_clock = { .name = "kvm-clock", .name = "kvm-clock", .read = kvm_clock_get_cycles, .read = kvm_clock_get_cycles, .rating = 400, .rating = 400, .mask = CLOCKSOURCE_MASK(64), .mask = CLOCKSOURCE_MASK(64), .flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS, }; }; EXPORT_SYMBOL_GPL(kvm_clock); int kvm_register_clock(char *txt) int kvm_register_clock(char *txt) { { Loading Loading
arch/x86/include/asm/kvmclock.h 0 → 100644 +6 −0 Original line number Original line Diff line number Diff line #ifndef _ASM_X86_KVM_CLOCK_H #define _ASM_X86_KVM_CLOCK_H extern struct clocksource kvm_clock; #endif /* _ASM_X86_KVM_CLOCK_H */
arch/x86/kernel/kvmclock.c +4 −1 Original line number Original line Diff line number Diff line Loading @@ -28,6 +28,7 @@ #include <asm/x86_init.h> #include <asm/x86_init.h> #include <asm/reboot.h> #include <asm/reboot.h> #include <asm/kvmclock.h> static int kvmclock __ro_after_init = 1; static int kvmclock __ro_after_init = 1; static int msr_kvm_system_time = MSR_KVM_SYSTEM_TIME; static int msr_kvm_system_time = MSR_KVM_SYSTEM_TIME; Loading @@ -49,6 +50,7 @@ struct pvclock_vsyscall_time_info *pvclock_pvti_cpu0_va(void) { { return hv_clock; return hv_clock; } } EXPORT_SYMBOL_GPL(pvclock_pvti_cpu0_va); /* /* * The wallclock is the time of day when we booted. Since then, some time may * The wallclock is the time of day when we booted. Since then, some time may Loading Loading @@ -174,13 +176,14 @@ bool kvm_check_and_clear_guest_paused(void) return ret; return ret; } } static struct clocksource kvm_clock = { struct clocksource kvm_clock = { .name = "kvm-clock", .name = "kvm-clock", .read = kvm_clock_get_cycles, .read = kvm_clock_get_cycles, .rating = 400, .rating = 400, .mask = CLOCKSOURCE_MASK(64), .mask = CLOCKSOURCE_MASK(64), .flags = CLOCK_SOURCE_IS_CONTINUOUS, .flags = CLOCK_SOURCE_IS_CONTINUOUS, }; }; EXPORT_SYMBOL_GPL(kvm_clock); int kvm_register_clock(char *txt) int kvm_register_clock(char *txt) { { Loading