Re: [PATCH v4 RESEND 3/5] KVM: x86: hyperv: use get_vcpu_by_vpidx() in kvm_hv_flush_tlb()

From: Paolo Bonzini
Date: Fri Sep 14 2018 - 13:33:41 EST


On 22/08/2018 12:18, Vitaly Kuznetsov wrote:
> VP_INDEX almost always matches VCPU id and get_vcpu_by_vpidx() is fast,
> use it instead of traversing full vCPU list every time.

... but if it doesn't, the algorithm is now quadratic, isn't i?

Paolo