Skip to content

vfio: preparation for vfio-user

John Levon qemu-devel 3 versions – In review

Get series with b4
b4 am [email protected]

Versions newest first · linked by author and title

  1. v3 Latest15 patches 11 repliesIn review
  2. v215 patches 25 repliesSuperseded
  3. v114 patches 38 repliesApplied

Patches in v3 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/15vfio: add vfio_device_prepare()hw/vfio/container.c hw/vfio/device.c hw/vfio/iommufd.c +1 more+20 -200 replies
2/15vfio: add vfio_device_unprepare()hw/vfio/container.c hw/vfio/device.c hw/vfio/iommufd.c +1 more+13 -60 replies
3/15vfio: add vfio_attach_device_by_iommu_type()hw/vfio/device.c include/hw/vfio/vfio-device.h+18 -70 replies
4/15vfio: add vfio_device_get_irq_info() helperhw/vfio/ap.c hw/vfio/ccw.c hw/vfio/device.c +3 more+53 -330 replies
5/15vfio: consistently handle return value for helpershw/vfio/pci.c+20 -130 replies
6/15vfio: add strread/writeerror()include/hw/vfio/vfio-device.h+14 -01 reply
7/15vfio: add vfio_pci_config_space_read/write()hw/vfio/pci.c+80 -430 replies
8/15vfio: add unmap_all flag to DMA unmap callbackhw/vfio/container-base.c hw/vfio/container.c hw/vfio/iommufd.c +2 more+30 -111 reply
9/15vfio: implement unmap all for DMA unmap callbackshw/vfio/container.c hw/vfio/iommufd.c hw/vfio/listener.c+51 -241 reply
10/15vfio: add device IO ops vectorhw/vfio/container-base.c hw/vfio/device.c hw/vfio/listener.c +2 more+114 -271 reply
11/15vfio: add region info cachehw/vfio/ccw.c hw/vfio/device.c hw/vfio/igd.c +3 more+31 -181 reply
12/15vfio: add read/write to device IO ops vectorhw/vfio/device.c hw/vfio/pci.c hw/vfio/region.c +1 more+77 -202 replies
13/15vfio: add vfio-pci-base classhw/vfio/device.c hw/vfio/pci.c hw/vfio/pci.h+50 -241 reply
14/15vfio/container: pass listener_begin/commit callbackshw/vfio/listener.c include/hw/vfio/vfio-container-base.h+30 -00 replies
15/15vfio/container: pass MemoryRegion to DMA operationshw/vfio/container-base.c hw/vfio/container.c hw/vfio/iommufd.c +5 more+29 -161 reply

Reviews trailers per patch

13 of 15 patches have a Reviewed-by or Acked-by.

PatchCédric Le GoaterJohn Johnson
1/15R-b
2/15R-b
3/15R-b
4/15R-b
5/15R-b
6/15R-b
7/15R-b
8/15R-b
9/15R-b
10/15R-b Originally-by
11/15R-b Originally-by
12/15
13/15R-b Originally-by
14/15R-b
15/15Originally-by

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v3 thread

Cover letter [PATCH v3 00/15] vfio: preparation for vfio-user

Hi, this series is against the vfio-next tree:
https://github.com/legoater/qemu/commits/vfio-next

The series contains patches to vfio to prepare for the vfio-user implementation. A previous version of these patches can be found at
https://patchew.org/QEMU/[email protected]/

The changes have been rebased on vfio-next, and include changes from previous series code review comments.

An old version of the full vfio-user series can be found at
https://lore.kernel.org/all/[email protected]/T/
("[PATCH v8 00/28] vfio-user client"). Please see that series for justification and context.

thanks
john

John Levon (15):
vfio: add vfio_device_prepare()
vfio: add vfio_device_unprepare()
vfio: add vfio_attach_device_by_iommu_type()
vfio: add vfio_device_get_irq_info() helper
vfio: consistently handle return value for helpers
vfio: add strread/writeerror()
vfio: add vfio_pci_config_space_read/write()
vfio: add unmap_all flag to DMA unmap callback
vfio: implement unmap all for DMA unmap callbacks
vfio: add device IO ops vector
vfio: add region info cache
vfio: add read/write to device IO ops vector
vfio: add vfio-pci-base class vfio/container: pass listener_begin/commit callbacks vfio/container: pass MemoryRegion to DMA operations

 hw/vfio/pci.h                         |  10 +-
 include/hw/vfio/vfio-container-base.h |  21 ++-
 include/hw/vfio/vfio-device.h         |  82 ++++++++
 include/system/memory.h               |   4 +-
 hw/vfio/ap.c                          |  19 +-
 hw/vfio/ccw.c                         |  25 ++-
 hw/vfio/container-base.c              |  14 +-
 hw/vfio/container.c                   |  62 ++++---
 hw/vfio/device.c                      | 183 ++++++++++++++++--
 hw/vfio/igd.c                         |  10 +-
 hw/vfio/iommufd.c                     |  35 ++--
 hw/vfio/listener.c                    |  82 +++++---
 hw/vfio/pci.c                         | 257 ++++++++++++++++----------
 hw/vfio/platform.c                    |   6 +-
 hw/vfio/region.c                      |  19 +-
 hw/virtio/vhost-vdpa.c                |   2 +-
 system/memory.c                       |   7 +-
 17 files changed, 603 insertions(+), 235 deletions(-)
Signature · 1 line
2.43.0