aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/include/asm/kvm_book3s.h
diff options
context:
space:
mode:
authorVitaly Kuznetsov <vkuznets@redhat.com>2021-09-03 09:51:41 +0200
committerPaolo Bonzini <pbonzini@redhat.com>2021-09-30 04:27:04 -0400
commit620b2438abf98f09e19802cbc3bc2e98179cdbe2 (patch)
tree27b1d04b869efb98267ae18f4fed3c6e75cf2580 /arch/powerpc/include/asm/kvm_book3s.h
parentKVM: Pre-allocate cpumasks for kvm_make_all_cpus_request_except() (diff)
downloadlinux-dev-620b2438abf98f09e19802cbc3bc2e98179cdbe2.tar.xz
linux-dev-620b2438abf98f09e19802cbc3bc2e98179cdbe2.zip
KVM: Make kvm_make_vcpus_request_mask() use pre-allocated cpu_kick_mask
kvm_make_vcpus_request_mask() already disables preemption so just like kvm_make_all_cpus_request_except() it can be switched to using pre-allocated per-cpu cpumasks. This allows for improvements for both users of the function: in Hyper-V emulation code 'tlb_flush' can now be dropped from 'struct kvm_vcpu_hv' and kvm_make_scan_ioapic_request_mask() gets rid of dynamic allocation. cpumask_available() checks in kvm_make_vcpu_request() and kvm_kick_many_cpus() can now be dropped as they checks for an impossible condition: kvm_init() makes sure per-cpu masks are allocated. 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-9-vkuznets@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'arch/powerpc/include/asm/kvm_book3s.h')
0 files changed, 0 insertions, 0 deletions