]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - arch/ia64/kvm/kvm-ia64.c
KVM: Userspace controlled irq routing
[linux-2.6-omap-h63xx.git] / arch / ia64 / kvm / kvm-ia64.c
index 1477f91617a5afdb69316f50bc2ea340fbf43c2f..dbf527a57341156633b19603b981835d2946c9d7 100644 (file)
@@ -919,6 +919,11 @@ long kvm_arch_vm_ioctl(struct file *filp,
                r = kvm_ioapic_init(kvm);
                if (r)
                        goto out;
+               r = kvm_setup_default_irq_routing(kvm);
+               if (r) {
+                       kfree(kvm->arch.vioapic);
+                       goto out;
+               }
                break;
        case KVM_IRQ_LINE: {
                struct kvm_irq_level irq_event;