]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: X86: Make tsc_delta calculation a function of guest tsc
authorJoerg Roedel <joerg.roedel@amd.com>
Fri, 25 Mar 2011 08:44:48 +0000 (09:44 +0100)
committerAvi Kivity <avi@redhat.com>
Wed, 11 May 2011 11:57:04 +0000 (07:57 -0400)
commitea2c1a91e07ef6ae7df90604bf8a88c9da201875
treee178845f4d0f061f90e57337f28be6640da8bd6d
parent3a1b82451d9007c32c2381f3f2eae37f4daf3850
KVM: X86: Make tsc_delta calculation a function of guest tsc

The calculation of the tsc_delta value to ensure a
forward-going tsc for the guest is a function of the
host-tsc. This works as long as the guests tsc_khz is equal
to the hosts tsc_khz. With tsc-scaling hardware support this
is not longer true and the tsc_delta needs to be calculated
using guest_tsc values.

Signed-off-by: Joerg Roedel <joerg.roedel@amd.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/x86.c