There are many code/logic duplications throughout ioapic/lapic/msi device emulation. Try to consolidate as much code as possible. --- Gleb Natapov (5): Get rid of deliver_bitmask. Change the way how lowest priority vcpu is calculated. Consolidate ioapic/ipi interrupt delivery logic. ioapic/msi interrupt delivery consolidation. Make kvm_apic_set_irq() deliver all kinds of interrupts. arch/ia64/include/asm/kvm_host.h | 1 arch/ia64/kvm/kvm-ia64.c | 53 ++++++------- arch/ia64/kvm/lapic.h | 6 + arch/x86/include/asm/kvm_host.h | 2 arch/x86/kvm/lapic.c | 158 +++++++++++--------------------------- arch/x86/kvm/lapic.h | 4 + include/linux/kvm_types.h | 10 ++ virt/kvm/ioapic.c | 83 ++++---------------- virt/kvm/ioapic.h | 11 +-- virt/kvm/irq_comm.c | 138 ++++++++++----------------------- 10 files changed, 158 insertions(+), 308 deletions(-) -- Gleb. -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html