On Thu, 7 Dec 2017 12:56:54 +1100 Alexey Kardashevskiy <aik@xxxxxxxxx> wrote: > At the moment VFIO rightfully assumes that INTx is supported if > the interrupt pin is not set to zero in the device config space. > However if that is not the case (the pin is not zero but pdev->irq is), > vfio_intx_enable() fails. > > In order to prevent the userspace from trying to enable INTx when we know > that it cannot work, let's mask the PCI_INTERRUPT_PIN register. > > Signed-off-by: Alexey Kardashevskiy <aik@xxxxxxxxx> > --- > drivers/vfio/pci/vfio_pci.c | 3 +++ > 1 file changed, 3 insertions(+) Applied to v4.16/vfio. Thanks, Alex