qemu-e2k/hw
Peter Maydell 66a96d7018 versatile_pci: Implement the correct PCI IRQ mapping
Implement the correct IRQ mapping for the Versatile PCI controller; it
differs between realview and versatile boards, but the previous QEMU
implementation was correct only for the first PCI card on a versatile
board, since we weren't swizzling IRQs based on the slot number.

Since this change would otherwise break any uses of PCI on Linux kernels
which have an equivalent bug (since they have effectively only been
tested against QEMU, not real hardware), we implement a mechanism
for automatically detecting those broken kernels and switching back
to the old mapping. This works by looking at the values the kernel
writes to the PCI_INTERRUPT_LINE register in the config space, which
is effectively the interrupt number the kernel expects the device
to be using.

Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
2013-04-19 11:15:19 +01:00
..
9pfs virtio-9p: Fix virtio-9p no longer building after hw-dirs branch merge 2013-04-09 07:47:00 -05:00
acpi
alpha include: avoid useless includes of exec/ headers 2013-04-15 18:19:26 +02:00
arm versatile_pci: Expose PCI I/O region on Versatile PB 2013-04-19 11:15:17 +01:00
audio hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
block m25p80: Add debug message for no bdrv 2013-04-16 10:25:34 +02:00
bt sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
char virtio-console: Remove any pending watches on close 2013-04-16 11:52:09 +02:00
core Merge remote-tracking branch 'afaerber/qom-cpu' into staging 2013-04-16 10:28:36 -05:00
cpu
cris hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
display configure: eliminate target_libs_softmmu 2013-04-18 14:12:31 +02:00
dma stream: Remove app argument hack 2013-04-16 10:04:23 +02:00
gpio
i2c hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
i386 kvmvapic: Replace FROM_SYSBUS() with QOM type cast 2013-04-16 01:19:46 +02:00
ide Merge remote-tracking branch 'bonzini/hw-dirs' into staging 2013-04-15 17:06:04 -05:00
input arm: fix location of some include files 2013-04-15 15:16:01 +02:00
intc ioapic: Replace FROM_SYSBUS() with QOM type cast 2013-04-16 01:19:46 +02:00
isa sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
lm32 arm: fix location of some include files 2013-04-15 15:16:01 +02:00
m68k
microblaze stream: Remove app argument hack 2013-04-16 10:04:23 +02:00
mips sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
misc sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
moxie
net virtio-net: cleanup: init and exit function. 2013-04-17 10:28:59 -05:00
nvram
openrisc
pci
pci-bridge hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
pci-host versatile_pci: Implement the correct PCI IRQ mapping 2013-04-19 11:15:19 +01:00
ppc sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
s390x virtio-net-ccw: switch to the new API. 2013-04-17 10:28:59 -05:00
scsi hw: move private headers to hw/ subdirectories. 2013-04-08 18:13:16 +02:00
sd Typo, spelling and grammatical fixes 2013-04-12 14:33:20 +02:00
sh4 arm: fix location of some include files 2013-04-15 15:16:01 +02:00
sparc sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
sparc64
ssi
timer arm: fix location of some include files 2013-04-15 15:16:01 +02:00
tpm sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
unicore32 console: add GraphicHwOps 2013-04-16 09:03:49 +02:00
usb use libusb for usb-host 2013-04-16 12:04:09 +02:00
virtio virtio-net-pci: switch to the new API. 2013-04-17 10:28:58 -05:00
watchdog
xen sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
xtensa sysemu: avoid proliferation of include/ subdirectories 2013-04-15 18:19:25 +02:00
Makefile.objs tpm: reorganize headers and split hardware part 2013-04-15 18:19:25 +02:00