aboutsummaryrefslogtreecommitdiffstats
path: root/virt/kvm/kvm_main.c
diff options
context:
space:
mode:
authorAvi Kivity <avi@redhat.com>2009-01-04 10:10:50 -0500
committerAvi Kivity <avi@redhat.com>2009-03-24 05:03:03 -0400
commit75858a84a6207f5e60196f6bbd18fde4250e5759 (patch)
treead8ab5d60a616270c61d88a9af08713cefbc9d35 /virt/kvm/kvm_main.c
parent5d9b8e30f543a9f21a968a4cda71e8f6d1c66a61 (diff)
KVM: Interrupt mask notifiers for ioapic
Allow clients to request notifications when the guest masks or unmasks a particular irq line. This complements irq ack notifications, as the guest will not ack an irq line that is masked. Currently implemented for the ioapic only. Signed-off-by: Avi Kivity <avi@redhat.com>
Diffstat (limited to 'virt/kvm/kvm_main.c')
-rw-r--r--virt/kvm/kvm_main.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/virt/kvm/kvm_main.c b/virt/kvm/kvm_main.c
index 04401e17c758..786a3ae373b0 100644
--- a/virt/kvm/kvm_main.c
+++ b/virt/kvm/kvm_main.c
@@ -842,6 +842,9 @@ static struct kvm *kvm_create_vm(void)
842 842
843 if (IS_ERR(kvm)) 843 if (IS_ERR(kvm))
844 goto out; 844 goto out;
845#ifdef CONFIG_HAVE_KVM_IRQCHIP
846 INIT_HLIST_HEAD(&kvm->mask_notifier_list);
847#endif
845 848
846#ifdef KVM_COALESCED_MMIO_PAGE_OFFSET 849#ifdef KVM_COALESCED_MMIO_PAGE_OFFSET
847 page = alloc_page(GFP_KERNEL | __GFP_ZERO); 850 page = alloc_page(GFP_KERNEL | __GFP_ZERO);