]> xenbits.xensource.com Git - people/julieng/xen-unstable.git/commit
svm: fix incorrect TSC scaling
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 8 Dec 2015 08:46:12 +0000 (09:46 +0100)
committerJan Beulich <jbeulich@suse.com>
Tue, 8 Dec 2015 08:46:12 +0000 (09:46 +0100)
commit11eeca65126e51f03a883907751d5ccbe4f35aa3
tree345f33d328572fba4df75c7ccbb0f8e29f4c699f
parent4217080693f9a4831e290c7a31bc6b886be5ca12
svm: fix incorrect TSC scaling

SVM TSC ratio is incorrectly used in the current
svm_get_tsc_offset(). This patch replaces the scaling logic in
svm_get_tsc_offset() with a correct implementation.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Boris Ostrovsky <boris.ostrovsky@oracle.com>
xen/arch/x86/hvm/svm/svm.c