KVM: VMX: Skip delta_tsc shift-and-divide if the dividend is zero
authorSean Christopherson <sean.j.christopherson@intel.com>
Tue, 16 Apr 2019 20:32:48 +0000 (13:32 -0700)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 30 Apr 2019 19:32:18 +0000 (21:32 +0200)
commit0967fa1cd3769207cf74ae84144ce47fec65a317
treef14d9ba73b5dd415a16b71e96c2314a7da087a69
parent4ca88b3f86cd03deecd48ca9880a7c2e7c6fb788
KVM: VMX: Skip delta_tsc shift-and-divide if the dividend is zero

Ten percent of nothin' is... let me do the math here.  Nothin' into
nothin', carry the nothin'...

Cc: Wanpeng Li <wanpengli@tencent.com>
Reviewed-by: Liran Alon <liran.alon@oracle.com>
Signed-off-by: Sean Christopherson <sean.j.christopherson@intel.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/vmx/vmx.c