PCI/MSI: Support allocating virtual MSI interrupts
authorLogan Gunthorpe <logang@deltatee.com>
Thu, 23 May 2019 22:30:51 +0000 (16:30 -0600)
committerJon Mason <jdmason@kudzu.us>
Thu, 13 Jun 2019 12:59:34 +0000 (08:59 -0400)
commitd7cc609fb679e11dc2b00cbe6c50cbd37ec4bfa2
treed8c7682961efed1e6b99045510c5b2cf935c64a6
parenta944ccc3b0aedb7f3a24b8c90624fe182e8a8851
PCI/MSI: Support allocating virtual MSI interrupts

For NTB devices, we want to be able to trigger MSI interrupts
through a memory window. In these cases we may want to use
more interrupts than the NTB PCI device has available in its MSI-X
table.

We allow for this by creating a new 'virtual' interrupt. These
interrupts are allocated as usual but are not programmed into the
MSI-X table (as there may not be space for them).

The MSI address and data will then handled through an NTB MSI library
introduced later in this series.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Acked-by: Bjorn Helgaas <bhelgaas@google.com>
Signed-off-by: Jon Mason <jdmason@kudzu.us>
drivers/pci/msi.c
include/linux/msi.h
include/linux/pci.h