target-i386: Fallback vcpu's TSC rate to value returned by KVM
authorHaozhong Zhang <haozhong.zhang@intel.com>
Tue, 24 Nov 2015 03:33:55 +0000 (11:33 +0800)
committerEduardo Habkost <ehabkost@redhat.com>
Thu, 21 Jan 2016 14:47:16 +0000 (12:47 -0200)
commitbcffbeeb82302eaec6aa19e40c05ff3cc863c9f4
tree65f9fa6dfdaeb14b9375e231cb333057975b38f0
parentf23a9db6bca5b9a228c77bbcaa06d01510e148b7
target-i386: Fallback vcpu's TSC rate to value returned by KVM

If no user-specified TSC rate is present, we will try to set
env->tsc_khz to the value returned by KVM_GET_TSC_KHZ. This patch
does not change the current functionality of QEMU and just
prepares for later patches to enable migrating vcpu's TSC rate.

Signed-off-by: Haozhong Zhang <haozhong.zhang@intel.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/kvm.c