]> xenbits.xensource.com Git - people/andrewcoop/seabios.git/commit
seabios q35: Add new PCI slot to irq routing function
authorAlex Williamson <alex.williamson@redhat.com>
Fri, 15 Feb 2013 21:11:41 +0000 (14:11 -0700)
committerKevin O'Connor <kevin@koconnor.net>
Sun, 24 Feb 2013 17:01:56 +0000 (12:01 -0500)
commit985a9d3b019f0c50b0a0751fe3d7feb672ef4c0e
tree3b21171bcddad2bce22ae3db40c7f6ffa2264cf2
parent2b577261e1d216b8cf2a57b095c4a753faf41455
seabios q35: Add new PCI slot to irq routing function

q35/ich9 doesn't use the same interrupt mapping function as
i440fx/piix.  PIRQA:D and PIRQE:H are programmed identically, but we
start at index 0, not index -1.  Slots 25 through 31 are also
programmed independently.

When running qemu w/o this patch, a device at address 0:6.0 will have
its PCI interrupt line register programmed with irq 10 (as seen by
info pci), but it actually uses irq 11 (as reported the guest).  Half
of the interrupt lines are misprogrammedi like this.  Functionally, a
fully emulated qemu guest doesn't care much, but when we try to use
device assignment, we really need to know the correct irqs.

Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
src/pciinit.c