-
- Downloads
x86: Add structs and functions for paravirt clocksource
This patch adds structs for the paravirt clocksource ABI used by both xen and kvm (pvclock-abi.h). It also adds some helper functions to read system time and wall clock time from a paravirtual clocksource (pvclock.[ch]). They are based on the xen code. They are enabled using CONFIG_PARAVIRT_CLOCK. Subsequent patches of this series will put the code in use. Signed-off-by:Gerd Hoffmann <kraxel@redhat.com> Acked-by:
Jeremy Fitzhardinge <jeremy.fitzhardinge@citrix.com> Signed-off-by:
Avi Kivity <avi@qumranet.com>
Showing
- arch/x86/Kconfig 4 additions, 0 deletionsarch/x86/Kconfig
- arch/x86/kernel/Makefile 1 addition, 0 deletionsarch/x86/kernel/Makefile
- arch/x86/kernel/pvclock.c 141 additions, 0 deletionsarch/x86/kernel/pvclock.c
- include/asm-x86/pvclock-abi.h 42 additions, 0 deletionsinclude/asm-x86/pvclock-abi.h
- include/asm-x86/pvclock.h 13 additions, 0 deletionsinclude/asm-x86/pvclock.h
Loading
Please register or sign in to comment