target-i386: Remove has_msr_hv_tsc global variable
commit3ddcd2edc8ca708ccd808a78424b9aadebd4f7c4
authorEduardo Habkost <ehabkost@redhat.com>
Fri, 15 Jul 2016 17:05:36 +0000 (15 14:05 -0300)
committerEduardo Habkost <ehabkost@redhat.com>
Tue, 27 Sep 2016 20:03:34 +0000 (27 17:03 -0300)
tree6aa50093a6ed048c9403d230a04931ec0b67fc34
parent2d5aa8728bc7d98baceffcfa62c23e13abcec4eb
target-i386: Remove has_msr_hv_tsc global variable

The global variable is not necessary because we can check
cpu->hyperv_time directly.

We just need to ensure cpu->hyperv_time will be cleared if the
feature is not really being exposed to the guest due to missing
KVM_CAP_HYPERV_TIME capability.

Reviewed-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
target-i386/kvm.c