On Mon, Jul 04, 2011 at 12:43:59PM +0300, Michael S. Tsirkin wrote: > +/* Mapping mandated by PCI-to-PCI Bridge architecture specification, > + * revision 1.2 */ > +/* Table 9-1: Interrupt Binding for Devices Behind a Bridge */ > +static int pci_bridge_dev_map_irq_fn(PCIDevice *dev, int irq_num) > +{ > + return (irq_num + PCI_SLOT(dev->devfn) + irq_num) % PCI_NUM_PINS; ^^^^^^^ ^^^^^^^ Typo. There are 2 irq_num.
-- yamahata