[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [PATCH] 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.

Signed-off-by: Don Dugger <donald.d.dugger@xxxxxxxxx>

Don Dugger
"Censeo Toto nos in Kansa esse decisse." - D. Gale
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)

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.