Change PCI IRQ assignments
PATCH 1/1 Change PCI IRQ assignments
Currently, the ACPI tables provided for an HVM Xen guest do not include tables for PCI devices. This causes the guest OS to default to IRQ 9 for all PCI devices. The PCI code assigns half the PCI IRQs to 9 and the other half to 11, creating the possibility of confusing certain unamed OS's. This patch avoids this issue by having the PCI code assign all PCI interrupts to IRQ 9, matching the IRQ assignments from the ACPI tables.
Signature · 20 lines
Don Dugger "Censeo Toto nos in Kansa esse decisse." - D. Gale [email protected] Ph: (303)440-1368 diff -r 5e3827f7a93a tools/ioemu/hw/pci.c --- a/tools/ioemu/hw/pci.c Mon Jun 05 17:17:27 2006 +0100 +++ b/tools/ioemu/hw/pci.c Tue Jun 06 15:03:05 2006 -0600 @@ -1394,7 +1394,8 @@ static uint32_t pci_bios_io_addr; static uint32_t pci_bios_io_addr; static uint32_t pci_bios_mem_addr; /* host irqs corresponding to PCI irqs A-D */ -static uint8_t pci_irqs[4] = { 11, 9, 11, 9 }; +/* note that this assignement should match the ACPI tables */ +static uint8_t pci_irqs[4] = { 9, 9, 9, 9 }; static void pci_set_io_region_addr(PCIDevice *d, int region_num, uint32_t addr) {
Quoted 6 lines · Donald D. Dugger
Currently, the ACPI tables provided for an HVM Xen guest do not include tables for PCI devices. This causes the guest OS to default to IRQ 9 for all PCI devices. The PCI code assigns half the PCI IRQs to 9 and the other half to 11, creating the possibility of confusing certain unamed OS's. This patch avoids this issue by having the PCI code assign all PCI interrupts to IRQ 9, matching the IRQ assignments from the ACPI tables.
How does QEMU deal with this possible confusion? Does it use different BIOS tables?
-- Keir