commit | 953899b659adce62cbe83d6a7527550ab8797c48 | [log] [tgz] |
---|---|---|
author | Joerg Roedel <joerg.roedel@amd.com> | Mon Dec 14 12:22:20 2009 +0100 |
committer | Marcelo Tosatti <mtosatti@redhat.com> | Mon Mar 01 12:35:41 2010 -0300 |
tree | 5eb465ea6b419ba58d310fec6c3e619fd4dd148d | |
parent | 4e47c7a6d714cf352b719db92a924b6ec487acc5 [diff] |
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>