On 5/9/25 12:24, Cédric Le Goater wrote:
On 5/7/25 17:20, John Levon wrote:
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/20250430194003.2793823-1-john.le...@nutanix.com/
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/7dd34008-e0f1-4eed-a77e-55b1f68fb...@redhat.com/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(-)
I am waiting for an update of patch 12 to apply 01-14 to vfio-next.
Applied 01-14 to vfio-next.
Thanks,
C.