From: Gerd Hoffmann Date: Wed, 4 Feb 2009 16:52:04 +0000 (+0100) Subject: KVM: Fix kvmclock on !constant_tsc boxes X-Git-Tag: v2.6.30-rc1~664^2~22 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c807660407a695f390034e402edfe544a1d2e40c;p=pandora-kernel.git KVM: Fix kvmclock on !constant_tsc boxes kvmclock currently falls apart on machines without constant tsc. This patch fixes it. Changes: * keep tsc frequency in a per-cpu variable. * handle kvmclock update using a new request flag, thus checking whenever we need an update each time we enter guest context. * use a cpufreq notifier to track frequency changes and force kvmclock updates. * send ipis to kick cpu out of guest context if needed to make sure the guest doesn't see stale values. Signed-off-by: Gerd Hoffmann Signed-off-by: Avi Kivity --- Reading git-diff-tree failed