KVM: optimize apic interrupt delivery
Most interrupt are delivered to only one vcpu. Use pre-build tables to find interrupt destination instead of looping through all vcpus. In case of logical mode loop only through vcpus in a logical cluster irq is sent to. Signed-off-by:Gleb Natapov <gleb@redhat.com> Acked-by:
Michael S. Tsirkin <mst@redhat.com> Signed-off-by:
Avi Kivity <avi@redhat.com>
Showing
- arch/x86/include/asm/kvm_host.h 12 additions, 0 deletionsarch/x86/include/asm/kvm_host.h
- arch/x86/kvm/lapic.c 176 additions, 12 deletionsarch/x86/kvm/lapic.c
- arch/x86/kvm/lapic.h 3 additions, 0 deletionsarch/x86/kvm/lapic.h
- arch/x86/kvm/x86.c 2 additions, 0 deletionsarch/x86/kvm/x86.c
- virt/kvm/irq_comm.c 6 additions, 1 deletionvirt/kvm/irq_comm.c
Loading
Please register or sign in to comment