]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commit
x86: KVM guest: use paravirt function to calculate cpu khz
authorGlauber Costa <gcosta@redhat.com>
Mon, 28 Jul 2008 14:47:53 +0000 (11:47 -0300)
committerAvi Kivity <avi@qumranet.com>
Wed, 15 Oct 2008 08:15:17 +0000 (10:15 +0200)
commit0293615f3fb9886b6b23800c121be293bb7483e9
treee0a4b16ef0af05fb6b0ca90adc1c9b2f9ba067e7
parent3807f345b2c610336c17c7624a0d496a38df75a0
x86: KVM guest: use paravirt function to calculate cpu khz

We're currently facing timing problems in guests that do
calibration under heavy load, and then the load vanishes.
This means we'll have a much lower lpj than we actually should,
and delays end up taking less time than they should, which is a
nasty bug.

Solution is to pass on the lpj value from host to guest, and have it
preset.

Signed-off-by: Glauber Costa <gcosta@redhat.com>
Signed-off-by: Avi Kivity <avi@qumranet.com>
arch/x86/kernel/kvmclock.c