KVM: consolidate ioapic/ipi interrupt delivery logic
authorGleb Natapov <gleb@redhat.com>
Thu, 5 Mar 2009 14:34:54 +0000 (16:34 +0200)
committerAvi Kivity <avi@redhat.com>
Wed, 10 Jun 2009 08:48:27 +0000 (11:48 +0300)
commit343f94fe4d16ec898da77720c03da9e09f8523d2
treefa0180a8446a90000086593b9fa8d4d81708ddd8
parenta53c17d21c46a752f5ac6695376481bc27865b04
KVM: consolidate ioapic/ipi interrupt delivery logic

Use kvm_apic_match_dest() in kvm_get_intr_delivery_bitmask() instead
of duplicating the same code. Use kvm_get_intr_delivery_bitmask() in
apic_send_ipi() to figure out ipi destination instead of reimplementing
the logic.

Signed-off-by: Gleb Natapov <gleb@redhat.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/ia64/kvm/kvm-ia64.c
arch/ia64/kvm/lapic.h
arch/x86/kvm/lapic.c
arch/x86/kvm/lapic.h
include/linux/kvm_host.h
virt/kvm/ioapic.c
virt/kvm/ioapic.h
virt/kvm/irq_comm.c