diff options
author | Vitaly Kuznetsov <vkuznets@redhat.com> | 2021-09-03 10:51:36 +0300 |
---|---|---|
committer | Paolo Bonzini <pbonzini@redhat.com> | 2021-09-30 11:27:03 +0300 |
commit | 6470accc7ba948b0b3aca22b273fe84ec638a116 (patch) | |
tree | 1599ffdc948ff16d68290e4ad08d5f1143498204 /virt/kvm/kvm_main.c | |
parent | 11476d277e06bbd7e1ba3315e0cfc78f529be9e2 (diff) | |
download | linux-6470accc7ba948b0b3aca22b273fe84ec638a116.tar.xz |
KVM: x86: hyper-v: Avoid calling kvm_make_vcpus_request_mask() with vcpu_mask==NULL
In preparation to making kvm_make_vcpus_request_mask() use for_each_set_bit()
switch kvm_hv_flush_tlb() to calling kvm_make_all_cpus_request() for 'all cpus'
case.
Note: kvm_make_all_cpus_request() (unlike kvm_make_vcpus_request_mask())
currently dynamically allocates cpumask on each call and this is suboptimal.
Both kvm_make_all_cpus_request() and kvm_make_vcpus_request_mask() are
going to be switched to using pre-allocated per-cpu masks.
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210903075141.403071-4-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
0 files changed, 0 insertions, 0 deletions