[Qemu-devel] [PATCH 0/2] Generic PCIe host bridge legacy interrupts routing support

2015-04-17 Thread Pranavkumar Sawargaonkar
This patch adds:
- Function to determine an irq number from qemu_irq.
- Function to determine and route legacy interrupts to a VM.


Pranavkumar Sawargaonkar (2):
  hw: irq: Add API to get irq number from qemu_irq
  pci: GPEX: Add support to route legacy interrupts

 hw/core/irq.c  |  9 +
 hw/pci-host/gpex.c | 12 
 include/hw/irq.h   |  1 +
 3 files changed, 22 insertions(+)

-- 
1.9.1




Re: [Qemu-devel] [PATCH 0/2] Generic PCIe host bridge legacy interrupts routing support

2015-04-17 Thread Peter Maydell
On 17 April 2015 at 09:55, Pranavkumar Sawargaonkar
pranavku...@linaro.org wrote:
 This patch adds:
 - Function to determine an irq number from qemu_irq.
 - Function to determine and route legacy interrupts to a VM.

Can you describe in more detail what this patch series
is supposed to do, please? Interrupt routing already
works fine, via the interrupt controller...

thanks
-- PMM



Re: [Qemu-devel] [PATCH 0/2] Generic PCIe host bridge legacy interrupts routing support

2015-04-17 Thread Pranavkumar Sawargaonkar
Hi PMM,

On 17 April 2015 at 15:23, Peter Maydell peter.mayd...@linaro.org wrote:
 On 17 April 2015 at 09:55, Pranavkumar Sawargaonkar
 pranavku...@linaro.org wrote:
 This patch adds:
 - Function to determine an irq number from qemu_irq.
 - Function to determine and route legacy interrupts to a VM.

 Can you describe in more detail what this patch series
 is supposed to do, please? Interrupt routing already
 works fine, via the interrupt controller...

GPEX driver is not registering a callback to route INTx and
pci_device_route_intx_to_irq() throws a following warning
PCI: Bug - unimplemented PCI INTx routing.
It also returns -1 as an interrupt number as well as marking it as a
disabled one.
Hence to complete the GPEX driver in terms of INTx routing I have
added this patch but at the same time routing works without this
patchset :) .


 thanks
 -- PMM

Thanks,
Pranav