KVM: VMX: Remove vmx->hv_deadline_tsc initialization from vmx_vcpu_setup()
authorXiaoyao Li <xiaoyao.li@intel.com>
Sun, 20 Oct 2019 09:10:59 +0000 (17:10 +0800)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 22 Oct 2019 11:42:52 +0000 (13:42 +0200)
... It can be removed here because the same code is called later in
vmx_vcpu_reset() as the flow:

kvm_arch_vcpu_setup()
-> kvm_vcpu_reset()
-> vmx_vcpu_reset()

Signed-off-by: Xiaoyao Li <xiaoyao.li@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c

index 279f855..ec7c42f 100644 (file)
@@ -4178,7 +4178,6 @@ static void vmx_vcpu_setup(struct vcpu_vmx *vmx)
 
        /* Control */
        pin_controls_set(vmx, vmx_pin_based_exec_ctrl(vmx));
-       vmx->hv_deadline_tsc = -1;
 
        exec_controls_set(vmx, vmx_exec_control(vmx));