The following changes since commit 019fbfa4bcd2d3a835c241295e22ab2b5b56129b:
Merge tag 'pull-misc-2025-04-24' of https://repo.or.cz/qemu/armbru into staging (2025-04-24 13:44:57 -0400) are available in the Git repository at: https://github.com/legoater/qemu/ tags/pull-vfio-20250425 for you to fetch changes up to a9d270f6b85bab40d388fe5244f02d145759cc08: vfio: refactor out vfio_pci_config_setup() (2025-04-25 09:01:38 +0200) ---------------------------------------------------------------- vfio queue: * Updated IGD passthrough documentation * Fixed L2 crash on pseries machines * Reorganized code and renamed services * Moved HostIOMMUDevice realize after device attachement to help adding support for nested IOMMU * Fixed CPR registration with IOMMUFD backend * Refactored vfio-pci code to prepare ground for vfio-user ---------------------------------------------------------------- Amit Machhiwal (2): vfio/spapr: Enhance error handling in vfio_spapr_create_window() vfio/spapr: Fix L2 crash with PCI device passthrough and memory > 128G Cédric Le Goater (39): vfio: Open code vfio_migration_set_error() vfio: Move vfio_mig_active() into migration.c vfio: Rename vfio_reset_bytes_transferred() vfio: Introduce a new header file for external migration services vfio: Make vfio_un/block_multiple_devices_migration() static vfio: Make vfio_viommu_preset() static vfio: Introduce a new header file for internal migration services vfio: Move vfio_device_state_is_running/precopy() into migration.c vfio: Introduce a new header file for VFIOdisplay declarations vfio: Move VFIOHostDMAWindow definition into spapr.c vfio: Introduce a new header file for VFIOIOMMUFD declarations vfio: Introduce new files for VFIORegion definitions and declarations vfio: Introduce a new header file for VFIOcontainer declarations vfio: Make vfio_group_list static vfio: Move VFIOAddressSpace helpers into container-base.c vfio: Move Host IOMMU type declarations into their respective files vfio: Introduce a new header file for helper services vfio: Move vfio_get_info_dma_avail() into helpers.c vfio: Move vfio_kvm_device_add/del_fd() to helpers.c vfio: Move vfio_get_device_info() to helpers.c vfio: Introduce a new file for VFIODevice definitions vfio: Introduce new files for CPR definitions and declarations vfio: Move vfio_kvm_device_fd() into helpers.c vfio: Move vfio_device_list into device.c vfio: Move vfio_de/attach_device() into device.c vfio: Move vfio_reset_handler() into device.c vfio: Move dirty tracking related services into container-base.c vfio: Make vfio_devices_query_dirty_bitmap() static vfio: Make vfio_container_query_dirty_bitmap() static vfio: Rename vfio_devices_all_dirty_tracking_started() vfio: Rename vfio_devices_all_device_dirty_tracking() vfio: Rename vfio_get_dirty_bitmap() vfio: Introduce new files for VFIO MemoryListener vfio: Rename RAM discard related services vfio: Introduce vfio_listener_un/register() routines vfio: Rename vfio-common.h to vfio-device.h vfio: Rename VFIODevice related services vfio: Rename VFIOContainer related services MAINTAINERS: Add a maintainer for util/vfio-helpers.c John Levon (2): vfio: refactor out vfio_interrupt_setup() vfio: refactor out vfio_pci_config_setup() Tomita Moeko (1): vfio/igd: Update IGD passthrough documentation Zhenzhong Duan (6): vfio/iommufd: Make a separate call to get IOMMU capabilities vfio/iommufd: Move realize() after attachment vfio/container: Move realize() after attachment vfio: Cleanup host IOMMU device creation vfio: Remove hiod_typename property vfio: Register/unregister container for CPR only once for each container MAINTAINERS | 1 + docs/igd-assign.txt | 265 +++++++++---- hw/vfio/migration-multifd.h | 2 +- hw/vfio/pci.h | 4 +- hw/vfio/vfio-cpr.h | 15 + hw/vfio/vfio-display.h | 42 ++ hw/vfio/vfio-helpers.h | 35 ++ hw/vfio/vfio-iommufd.h | 34 ++ hw/vfio/vfio-listener.h | 15 + hw/vfio/vfio-migration-internal.h | 74 ++++ include/hw/s390x/vfio-ccw.h | 2 +- include/hw/vfio/vfio-common.h | 346 ----------------- include/hw/vfio/vfio-container-base.h | 15 +- include/hw/vfio/vfio-container.h | 36 ++ include/hw/vfio/vfio-device.h | 150 ++++++++ include/hw/vfio/vfio-migration.h | 16 + include/hw/vfio/vfio-platform.h | 4 +- include/hw/vfio/vfio-region.h | 47 +++ backends/iommufd.c | 2 +- hw/core/sysbus-fdt.c | 1 + hw/ppc/spapr_pci_vfio.c | 6 +- hw/s390x/s390-pci-vfio.c | 3 +- hw/vfio/ap.c | 14 +- hw/vfio/ccw.c | 30 +- hw/vfio/container-base.c | 192 +++++++++- hw/vfio/container.c | 144 +++---- hw/vfio/cpr.c | 3 +- hw/vfio/device.c | 400 +++++++++++++++++++ hw/vfio/display.c | 10 +- hw/vfio/helpers.c | 702 ++++------------------------------ hw/vfio/igd.c | 10 +- hw/vfio/iommufd.c | 55 +-- hw/vfio/{common.c => listener.c} | 510 +++--------------------- hw/vfio/migration-multifd.c | 7 +- hw/vfio/migration.c | 108 +++++- hw/vfio/pci.c | 283 +++++++------- hw/vfio/platform.c | 15 +- hw/vfio/region.c | 395 +++++++++++++++++++ hw/vfio/spapr.c | 79 ++-- migration/target.c | 8 +- hw/vfio/meson.build | 10 +- hw/vfio/trace-events | 36 +- 42 files changed, 2290 insertions(+), 1836 deletions(-) create mode 100644 hw/vfio/vfio-cpr.h create mode 100644 hw/vfio/vfio-display.h create mode 100644 hw/vfio/vfio-helpers.h create mode 100644 hw/vfio/vfio-iommufd.h create mode 100644 hw/vfio/vfio-listener.h create mode 100644 hw/vfio/vfio-migration-internal.h delete mode 100644 include/hw/vfio/vfio-common.h create mode 100644 include/hw/vfio/vfio-container.h create mode 100644 include/hw/vfio/vfio-device.h create mode 100644 include/hw/vfio/vfio-migration.h create mode 100644 include/hw/vfio/vfio-region.h create mode 100644 hw/vfio/device.c rename hw/vfio/{common.c => listener.c} (74%) create mode 100644 hw/vfio/region.c