diff options
author | Gleb Natapov <gleb@redhat.com> | 2009-03-05 09:34:54 -0500 |
---|---|---|
committer | Avi Kivity <avi@redhat.com> | 2009-06-10 04:48:27 -0400 |
commit | 343f94fe4d16ec898da77720c03da9e09f8523d2 (patch) | |
tree | fa0180a8446a90000086593b9fa8d4d81708ddd8 /include/linux/kvm_host.h | |
parent | a53c17d21c46a752f5ac6695376481bc27865b04 (diff) |
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>
Diffstat (limited to 'include/linux/kvm_host.h')
-rw-r--r-- | include/linux/kvm_host.h | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/include/linux/kvm_host.h b/include/linux/kvm_host.h index ec9d078b1e8e..fb60f31c4fb3 100644 --- a/include/linux/kvm_host.h +++ b/include/linux/kvm_host.h | |||
@@ -363,11 +363,6 @@ void kvm_unregister_irq_mask_notifier(struct kvm *kvm, int irq, | |||
363 | struct kvm_irq_mask_notifier *kimn); | 363 | struct kvm_irq_mask_notifier *kimn); |
364 | void kvm_fire_mask_notifiers(struct kvm *kvm, int irq, bool mask); | 364 | void kvm_fire_mask_notifiers(struct kvm *kvm, int irq, bool mask); |
365 | 365 | ||
366 | #ifdef __KVM_HAVE_IOAPIC | ||
367 | void kvm_get_intr_delivery_bitmask(struct kvm *kvm, | ||
368 | union kvm_ioapic_redirect_entry *entry, | ||
369 | unsigned long *deliver_bitmask); | ||
370 | #endif | ||
371 | int kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level); | 366 | int kvm_set_irq(struct kvm *kvm, int irq_source_id, int irq, int level); |
372 | void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin); | 367 | void kvm_notify_acked_irq(struct kvm *kvm, unsigned irqchip, unsigned pin); |
373 | void kvm_register_irq_ack_notifier(struct kvm *kvm, | 368 | void kvm_register_irq_ack_notifier(struct kvm *kvm, |