x86: allow IRQs to work without APIC again
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.
Signed-off-by Jan Beulich <[email protected]>
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;