]> git.baikalelectronics.ru Git - kernel.git/commit
x86: KVM guest: Use the paravirt clocksource structs and functions
authorGerd Hoffmann <kraxel@redhat.com>
Tue, 3 Jun 2008 14:17:32 +0000 (16:17 +0200)
committerAvi Kivity <avi@qumranet.com>
Tue, 24 Jun 2008 18:02:33 +0000 (21:02 +0300)
commitd84843b194d93edb75b968c44d1f7765a12918aa
tree3c58c3314c542e4edf3e520d201dd7970264418a
parent03f9d6b84b2d6172d60636c40614ddc585686acf
x86: KVM guest: Use the paravirt clocksource structs and functions

This patch updates the kvm host code to use the pvclock structs
and functions, thereby making it compatible with Xen.

The patch also fixes an initialization bug: on SMP systems the
per-cpu has two different locations early at boot and after CPU
bringup.  kvmclock must take that in account when registering the
physical address within the host.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/Kconfig
arch/x86/kernel/kvmclock.c