commit | 4ba76538dd52dd9b18b464e509cb8f3ed4ed993f | [log] [tgz] |
---|---|---|
author | Haozhong Zhang <haozhong.zhang@intel.com> | Tue Oct 20 15:39:07 2015 +0800 |
committer | Paolo Bonzini <pbonzini@redhat.com> | Tue Nov 10 12:06:18 2015 +0100 |
tree | 32037daf9320fabc677697ae2ddaf03bd976b94c | |
parent | 58ea6767874e791a6c4f5c96c7d9155de4b1af28 [diff] |
KVM: x86: Move TSC scaling logic out of call-back read_l1_tsc() Both VMX and SVM scales the host TSC in the same way in call-back read_l1_tsc(), so this patch moves the scaling logic from call-back read_l1_tsc() to a common function kvm_read_l1_tsc(). Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>