Pull VFIO updates from Alex Williamson: - Mask INTx from user if pdev->irq is zero (Alexey Kardashevskiy) - Capability helper cleanup (Alex Williamson) - Allow mmaps overlapping MSI-X vector table with region capability exposing this feature (Alexey Kardashevskiy) - mdev static cleanups (Xiongwei Song) * tag 'vfio-v4.16-rc1' of git://github.com/awilliam/linux-vfio: vfio: mdev: make a couple of functions and structure vfio_mdev_driver static vfio-pci: Allow mapping MSIX BAR vfio: Simplify capability helper vfio-pci: Mask INTx if a device is not capabable of enabling it
Showing the changes to include/uapi/linux (1 of 6 files). Show all
Unified · Split
| @@ -301,6 +301,16 @@ struct vfio_region_info_cap_type { · 300 unmodified lines | |||
| 301 | #define VFIO_REGION_SUBTYPE_INTEL_IGD_HOST_CFG (2) | 301 | #define VFIO_REGION_SUBTYPE_INTEL_IGD_HOST_CFG (2) |
| 302 | #define VFIO_REGION_SUBTYPE_INTEL_IGD_LPC_CFG (3) | 302 | #define VFIO_REGION_SUBTYPE_INTEL_IGD_LPC_CFG (3) |
| 303 | 303 | ||
| 304 | /* | ||
| 305 | * The MSIX mappable capability informs that MSIX data of a BAR can be mmapped | ||
| 306 | * which allows direct access to non-MSIX registers which happened to be within | ||
| 307 | * the same system page. | ||
| 308 | * | ||
| 309 | * Even though the userspace gets direct access to the MSIX data, the existing | ||
| 310 | * VFIO_DEVICE_SET_IRQS interface must still be used for MSIX configuration. | ||
| 311 | */ | ||
| 312 | #define VFIO_REGION_INFO_CAP_MSIX_MAPPABLE 3 | ||
| 313 | |||
| 304 | /** | 314 | /** |
| 305 | * VFIO_DEVICE_GET_IRQ_INFO - _IOWR(VFIO_TYPE, VFIO_BASE + 9, | 315 | * VFIO_DEVICE_GET_IRQ_INFO - _IOWR(VFIO_TYPE, VFIO_BASE + 9, |
| 306 | * struct vfio_irq_info) | 316 | * struct vfio_irq_info) |