Skip to contentSkip to conversation

x86: allow IRQs to work without APIC again

PATCH New Jan Beulich 1 participant 1 message Sep 21, 2009

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86: allow IRQs to work without APIC again

Non-IO-APIC IRQs must get 1:1 mapped between domain PIRQ and Xen IRQ.

xen/arch/x86/domain.c +4 -0
@@ -496,6 +496,10 @@ int arch_domain_create(struct domain *d,
         memset(d->arch.irq_pirq, 0,
                nr_irqs * sizeof(*d->arch.irq_pirq));
 
+        for ( i = 1; platform_legacy_irq(i); ++i )
+            if ( !IO_APIC_IRQ(i) )
+                d->arch.irq_pirq[i] = d->arch.pirq_irq[i] = i;
+
         if ( (rc = iommu_domain_init(d)) != 0 )
             goto fail;