Re: [PATCH v4 RESEND 2/5] KVM: x86: hyperv: optimize 'all cpus' case in kvm_hv_flush_tlb()
From: Paolo Bonzini
Date: Fri Sep 14 2018 - 13:32:42 EST
On 22/08/2018 12:18, Vitaly Kuznetsov wrote:
> cpumask_clear(&hv_current->tlb_lush);
>
> + if (all_cpus) {
> + kvm_make_vcpus_request_mask(kvm,
> + KVM_REQ_TLB_FLUSH | KVM_REQUEST_NO_WAKEUP,
> + NULL, &hv_current->tlb_lush);
> + goto ret_success;
> + }
> +
The cpumask_clear can be pushed below the if. Queued with that change.
Paolo