]> git.karo-electronics.de Git - linux-beck.git/commit
KVM: SVM: Adjust tsc_offset only if tsc_unstable
authorJoerg Roedel <joerg.roedel@amd.com>
Mon, 14 Dec 2009 11:22:20 +0000 (12:22 +0100)
committerMarcelo Tosatti <mtosatti@redhat.com>
Mon, 1 Mar 2010 15:35:41 +0000 (12:35 -0300)
commit953899b659adce62cbe83d6a7527550ab8797c48
tree5eb465ea6b419ba58d310fec6c3e619fd4dd148d
parent4e47c7a6d714cf352b719db92a924b6ec487acc5
KVM: SVM: Adjust tsc_offset only if tsc_unstable

The tsc_offset adjustment in svm_vcpu_load is executed
unconditionally even if Linux considers the host tsc as
stable. This causes a Linux guest detecting an unstable tsc
in any case.
This patch removes the tsc_offset adjustment if the host tsc
is stable. The guest will now get the benefit of a stable
tsc too.

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