KVM: x86: hyperv: optimize kvm_hv_flush_tlb() for vp_index == vcpu_idx case
authorVitaly Kuznetsov <vkuznets@redhat.com>
Wed, 26 Sep 2018 17:02:58 +0000 (19:02 +0200)
committerPaolo Bonzini <pbonzini@redhat.com>
Tue, 16 Oct 2018 22:29:46 +0000 (00:29 +0200)
commit2cefc5feb80cf4237890a6a4582a0d20e50d9ced
treedb3043d57bf5e65b7210a27c75d27858f75ce2fe
parent0b0a31badb2d98967175c6812ac81db20f9a67fc
KVM: x86: hyperv: optimize kvm_hv_flush_tlb() for vp_index == vcpu_idx case

VP inedx almost always matches VCPU and when it does it's faster to walk
the sparse set instead of all vcpus.

Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/x86/kvm/hyperv.c