WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] [PATCH] Change PCI IRQ assignments

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] [PATCH] Change PCI IRQ assignments
From: "Donald D. Dugger" <donald.d.dugger@xxxxxxxxx>
Date: Tue, 6 Jun 2006 14:27:47 -0700
Delivery-date: Tue, 06 Jun 2006 14:31:46 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mutt/1.4.1i
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
Donald.D.Dugger@xxxxxxxxx
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
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>