diff options
| author | 2021-09-03 09:51:40 +0200 | |
|---|---|---|
| committer | 2021-09-30 04:27:04 -0400 | |
| commit | baff59ccdc657d290be51b95b38ebe5de40036b4 (patch) | |
| tree | 377c18fe9ef9d8ceaa8aaa1293a48476c8adf353 /include/linux/kvm_host.h | |
| parent | KVM: Drop 'except' parameter from kvm_make_vcpus_request_mask() (diff) | |
| download | linux-dev-baff59ccdc657d290be51b95b38ebe5de40036b4.tar.xz linux-dev-baff59ccdc657d290be51b95b38ebe5de40036b4.zip | |
KVM: Pre-allocate cpumasks for kvm_make_all_cpus_request_except()
Allocating cpumask dynamically in zalloc_cpumask_var() is not ideal.
Allocation is somewhat slow and can (in theory and when CPUMASK_OFFSTACK)
fail. kvm_make_all_cpus_request_except() already disables preemption so
we can use pre-allocated per-cpu cpumasks instead.
Signed-off-by: Vitaly Kuznetsov <vkuznets@redhat.com>
Reviewed-by: Sean Christopherson <seanjc@google.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Message-Id: <20210903075141.403071-8-vkuznets@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'include/linux/kvm_host.h')
0 files changed, 0 insertions, 0 deletions
