Skip to content

Introduce MSI hardware mapping for VFIO

Pavel Fedin kvm kvmarm 2 versions NAK

Status from this message: Nak, that doesn't solve anything.

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v2 Latest3 patches 4 repliesNAK
  2. v13 patches 0 repliesSuperseded

Changes in v2 from the cover letter

- Adde dependency on CONFIG_GENERIC_MSI_IRQ_DOMAIN in some parts of the code, should fix build without this option

Patches in v2

#Subject and filesSizeRepliesApplied
1/3vfio: Introduce map and unmap operationsdrivers/vfio/vfio_iommu_type1.c include/linux/vfio.h+32 -10 replies
2/3gicv3, its: Introduce VFIO map and unmap operationsdrivers/irqchip/irq-gic-v3-its.c include/linux/irqchip/arm-gic-v3.h include/linux/msi.h+45 -00 replies
3/3vfio: Introduce generic MSI mapping operationsdrivers/vfio/pci/vfio_pci_intrs.c drivers/vfio/vfio.c include/linux/vfio.h+140 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v2 yet.

Read the v2 thread

Cover letter [PATCH v2 0/3] Introduce MSI hardware mapping for VFIO

On some architectures (e.g. ARM64) if the device is behind an IOMMU, and is being mapped by VFIO, it is necessary to also add mappings for MSI translation register for interrupts to work. This series implements the necessary API to do this, and makes use of this API for GICv3 ITS on ARM64.

v1 => v2:
- Adde dependency on CONFIG_GENERIC_MSI_IRQ_DOMAIN in some parts of the code, should fix build without this option

Pavel Fedin (3):
vfio: Introduce map and unmap operations gicv3, its: Introduce VFIO map and unmap operations
vfio: Introduce generic MSI mapping operations

 drivers/irqchip/irq-gic-v3-its.c   |  31 ++++++++++
 drivers/vfio/pci/vfio_pci_intrs.c  |  11 ++++
 drivers/vfio/vfio.c                | 116 +++++++++++++++++++++++++++++++++++++
 drivers/vfio/vfio_iommu_type1.c    |  29 ++++++++++
 include/linux/irqchip/arm-gic-v3.h |   2 +
 include/linux/msi.h                |  12 ++++
 include/linux/vfio.h               |  17 +++++-
 7 files changed, 217 insertions(+), 1 deletion(-)
Signature · 1 line
2.4.4