[kvm-devel] [PATCH 1/4] Add helper functions for paravirtual clocksources.

2008-05-16 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED] --- arch/x86/Kconfig |4 + arch/x86/kernel/Makefile |1 + arch/x86/kernel/pvclock.c | 148 + include/asm-x86/pvclock.h |6 ++ 4 files changed, 159 insertions(+), 0 deletions(-)

[kvm-devel] [PATCH 1/4] Add helper functions for paravirtual clocksources.

2008-05-08 Thread Gerd Hoffmann
The helper functions are intended to be used by both xen and kvm paravirtual clock sources. Following patches of this series put them into use. They are based on the xen code. Cc: Jeremy Fitzhardinge [EMAIL PROTECTED] Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED] --- arch/x86/Kconfig

Re: [kvm-devel] [PATCH 1/4] Add helper functions for paravirtual clocksources.

2008-04-28 Thread Gerd Hoffmann
Glauber Costa wrote: This is not exactly what kvm does. For us, wallclock read and system time reads are decoupled operations, controlled by different msrs. Same for xen. Although both live in the shared_info page they are updated independently (and the wall clock is updated much less

[kvm-devel] [PATCH 1/4] Add helper functions for paravirtual clocksources.

2008-04-24 Thread Gerd Hoffmann
Signed-off-by: Gerd Hoffmann [EMAIL PROTECTED] --- arch/x86/Kconfig |4 + arch/x86/kernel/Makefile |1 + arch/x86/kernel/pvclock.c | 146 + include/asm-x86/pvclock.h |6 ++ 4 files changed, 157 insertions(+), 0 deletions(-)

Re: [kvm-devel] [PATCH 1/4] Add helper functions for paravirtual clocksources.

2008-04-24 Thread Glauber Costa
+void pvclock_read_wallclock(struct kvm_wall_clock *wall_clock, + struct kvm_vcpu_time_info *vcpu_time, + struct timespec *ts) +{ + u32 version; + u64 delta; + struct timespec now; + + /* get wallclock at