linux/drivers/vfio/pci
Alex Williamson 2bd42b03ab vfio/pci: Virtualize zero INTx PIN if no pdev->irq
Typically pdev->irq is consistent with whether the device itself
supports INTx, where device support is reported via the PIN register.
Therefore the PIN register is often already zero if pdev->irq is zero.

Recently virtualization of the PIN register was expanded to include
the case where the device supports INTx but the platform does not
route the interrupt.  This is reported by a value of IRQ_NOTCONNECTED
on some architectures.  Other architectures just report zero for
pdev->irq.

We already disallow INTx setup if pdev->irq is zero, therefore add
this to the PIN register virtualization criteria so that a consistent
view is provided to userspace through virtualized config space and
ioctls.

Reported-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Link: https://lore.kernel.org/all/174231895238.2295.12586708771396482526.stgit@linux.ibm.com/
Tested-by: Shivaprasad G Bhat <sbhat@linux.ibm.com>
Link: https://lore.kernel.org/r/20250320194145.2816379-1-alex.williamson@redhat.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
2025-04-14 08:31:45 -06:00
..
hisilicon hisi_acc_vfio_pci: register debugfs for hisilicon migration driver 2024-11-13 14:58:47 -07:00
mlx5 mm: alloc_pages_bulk: rename API 2025-01-25 20:22:31 -08:00
nvgrace-gpu vfio/nvgrace-gpu: Add GB200 SKU to the devid table 2025-01-27 09:43:33 -07:00
pds module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
qat module: Convert symbol namespace to string literal 2024-12-02 11:34:44 -08:00
virtio vfio/virtio: Enable support for virtio-block live migration 2025-03-10 14:42:50 -06:00
Kconfig s390/pci: Introduce pdev->non_mappable_bars and replace VFIO_PCI_MMAP 2025-03-21 14:54:16 -05:00
Makefile vfio/qat: Add vfio_pci driver for Intel QAT SR-IOV VF devices 2024-04-29 13:25:41 -06:00
trace.h vfio/pci: Cleanup license mess 2019-01-22 11:06:05 -07:00
vfio_pci.c VFIO updates for v6.15-rc1 2025-04-01 19:35:19 -07:00
vfio_pci_config.c vfio/pci: Virtualize zero INTx PIN if no pdev->irq 2025-04-14 08:31:45 -06:00
vfio_pci_core.c VFIO updates for v6.15-rc1 2025-04-01 19:35:19 -07:00
vfio_pci_igd.c vfio/pci: match IGD devices in display controller class 2025-02-27 11:30:07 -07:00
vfio_pci_intrs.c vfio/pci: Handle INTx IRQ_NOTCONNECTED 2025-03-17 15:15:17 -06:00
vfio_pci_priv.h vfio/pci: match IGD devices in display controller class 2025-02-27 11:30:07 -07:00
vfio_pci_rdwr.c vfio/pci: Expose setup ROM at ROM bar when needed 2025-01-06 08:09:54 -07:00
vfio_pci_zdev.c Merge remote-tracking branch 'mlx5/mlx5-vfio' into v6.1/vfio/next 2022-09-08 10:44:34 -06:00