PPC: e500: implement PCI INTx routing
commit3016dca06cba0ef9511f1c81c7e73bfc805fb254
authorBharat Bhushan <r65777@freescale.com>
Mon, 12 May 2014 09:45:40 +0000 (12 15:15 +0530)
committerAlexander Graf <agraf@suse.de>
Mon, 16 Jun 2014 11:24:34 +0000 (16 13:24 +0200)
treeda0f52a73fc09a58760359b50bce84d4d24f860a
parentd575a6ce0efb96966240a53bf611ad6bf5a14ebd
PPC: e500: implement PCI INTx routing

This patch adds pci pin to irq_num routing callback.
This callback is called from pci_device_route_intx_to_irq to
find which pci device maps to which irq.
This fix is required for pci-device passthrough using vfio.

Also without this patch we gets below prints

"
  PCI: Bug - unimplemented PCI INTx routing (e500-pcihost)
  qemu-system-ppc64: PCI: Bug - unimplemented PCI INTx routing (e500-pcihost) "

and Legacy interrupt does not work with pci device passthrough.

Signed-off-by: Bharat Bhushan <Bharat.Bhushan@freescale.com>
Acked-by: Michael S. Tsirkin <mst@redhat.com>
[agraf: remove double semicolon]
Signed-off-by: Alexander Graf <agraf@suse.de>
hw/pci-host/ppce500.c
hw/ppc/e500.c