aboutsummaryrefslogtreecommitdiffstats
path: root/arch/ia64/kvm/kvm-ia64.c
diff options
context:
space:
mode:
Diffstat (limited to 'arch/ia64/kvm/kvm-ia64.c')
-rw-r--r--arch/ia64/kvm/kvm-ia64.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/arch/ia64/kvm/kvm-ia64.c b/arch/ia64/kvm/kvm-ia64.c
index a312c9e9b9e..8a2b13ff0af 100644
--- a/arch/ia64/kvm/kvm-ia64.c
+++ b/arch/ia64/kvm/kvm-ia64.c
@@ -778,6 +778,9 @@ static void kvm_init_vm(struct kvm *kvm)
778 kvm_build_io_pmt(kvm); 778 kvm_build_io_pmt(kvm);
779 779
780 INIT_LIST_HEAD(&kvm->arch.assigned_dev_head); 780 INIT_LIST_HEAD(&kvm->arch.assigned_dev_head);
781
782 /* Reserve bit 0 of irq_sources_bitmap for userspace irq source */
783 set_bit(KVM_USERSPACE_IRQ_SOURCE_ID, &kvm->arch.irq_sources_bitmap);
781} 784}
782 785
783struct kvm *kvm_arch_create_vm(void) 786struct kvm *kvm_arch_create_vm(void)
@@ -941,9 +944,8 @@ long kvm_arch_vm_ioctl(struct file *filp,
941 goto out; 944 goto out;
942 if (irqchip_in_kernel(kvm)) { 945 if (irqchip_in_kernel(kvm)) {
943 mutex_lock(&kvm->lock); 946 mutex_lock(&kvm->lock);
944 kvm_ioapic_set_irq(kvm->arch.vioapic, 947 kvm_set_irq(kvm, KVM_USERSPACE_IRQ_SOURCE_ID,
945 irq_event.irq, 948 irq_event.irq, irq_event.level);
946 irq_event.level);
947 mutex_unlock(&kvm->lock); 949 mutex_unlock(&kvm->lock);
948 r = 0; 950 r = 0;
949 } 951 }