[PULL 00/31] vfio queue

Cédric Le Goater posted 31 patches 1 day, 4 hours ago
Patches applied successfully (tree, apply log)
git fetch https://github.com/patchew-project/qemu tags/patchew/20250908165354.1731444-1-clg@redhat.com
Maintainers: Paolo Bonzini <pbonzini@redhat.com>, Peter Maydell <peter.maydell@linaro.org>, Nicholas Piggin <npiggin@gmail.com>, Harsh Prateek Bora <harshpb@linux.ibm.com>, Matthew Rosato <mjrosato@linux.ibm.com>, Eric Farman <farman@linux.ibm.com>, Thomas Huth <thuth@redhat.com>, Richard Henderson <richard.henderson@linaro.org>, David Hildenbrand <david@redhat.com>, Ilya Leoshkevich <iii@linux.ibm.com>, Halil Pasic <pasic@linux.ibm.com>, Christian Borntraeger <borntraeger@linux.ibm.com>, John Levon <john.levon@nutanix.com>, Thanos Makatos <thanos.makatos@nutanix.com>, "Cédric Le Goater" <clg@redhat.com>, Alex Williamson <alex.williamson@redhat.com>, Steve Sistare <steven.sistare@oracle.com>, Tomita Moeko <tomitamoeko@gmail.com>
There is a newer version of this series
MAINTAINERS                           |   2 +
docs/about/deprecated.rst             |  25 --
docs/about/removed-features.rst       |  25 ++
docs/devel/kconfig.rst                |   2 -
hw/vfio-user/container.h              |   7 +-
hw/vfio/pci.h                         |  20 +-
{include/hw => hw}/vfio/vfio-region.h |   0
include/hw/vfio/vfio-amd-xgbe.h       |  46 ---
include/hw/vfio/vfio-calxeda-xgmac.h  |  43 --
include/hw/vfio/vfio-container-base.h |  13 +-
include/hw/vfio/vfio-container.h      |   7 +-
include/hw/vfio/vfio-device.h         |   2 +-
include/hw/vfio/vfio-platform.h       |  78 ----
hw/arm/virt.c                         |   5 -
hw/core/sysbus-fdt.c                  | 383 ------------------
hw/ppc/spapr_pci_vfio.c               |   2 +-
hw/s390x/s390-pci-vfio.c              |  14 +-
hw/vfio-user/container.c              |  26 +-
hw/vfio-user/pci.c                    |  18 +-
hw/vfio/amd-xgbe.c                    |  61 ---
hw/vfio/calxeda-xgmac.c               |  61 ---
hw/vfio/container.c                   |  35 +-
hw/vfio/cpr-legacy.c                  |  14 +-
hw/vfio/cpr.c                         |  12 +-
hw/vfio/device.c                      |   2 +-
hw/vfio/igd.c                         |  45 ++-
hw/vfio/iommufd.c                     |   4 +-
hw/vfio/listener.c                    |  20 +-
hw/vfio/pci-quirks.c                  |  48 ++-
hw/vfio/pci.c                         | 217 +++++++----
hw/vfio/platform.c                    | 716 ----------------------------------
hw/vfio/spapr.c                       |  16 +-
hw/arm/Kconfig                        |   3 -
hw/vfio/Kconfig                       |  16 -
hw/vfio/meson.build                   |   3 -
hw/vfio/trace-events                  |  11 -
36 files changed, 329 insertions(+), 1673 deletions(-)
rename {include/hw => hw}/vfio/vfio-region.h (100%)
delete mode 100644 include/hw/vfio/vfio-amd-xgbe.h
delete mode 100644 include/hw/vfio/vfio-calxeda-xgmac.h
delete mode 100644 include/hw/vfio/vfio-platform.h
delete mode 100644 hw/vfio/amd-xgbe.c
delete mode 100644 hw/vfio/calxeda-xgmac.c
delete mode 100644 hw/vfio/platform.c
[PULL 00/31] vfio queue
Posted by Cédric Le Goater 1 day, 4 hours ago
The following changes since commit 6a9fa5ef3230a7d51e0d953a59ee9ef10af705b8:

  Merge tag 'pull-tcg-20250905' of https://gitlab.com/rth7680/qemu into staging (2025-09-05 09:51:27 +0200)

are available in the Git repository at:

  https://github.com/legoater/qemu/ tags/pull-vfio-20250908

for you to fetch changes up to bb986792a968ee51cda72cd4cc05822198495375:

  vfio/pci.h: rename VFIOPCIDevice pdev field to parent_obj (2025-09-08 16:46:32 +0200)

----------------------------------------------------------------
vfio queue:

* Large refactor of the VFIO code to use QOM casts and follow the
  current coding style guidelines
* Removal of the deprecated vfio-platform, vfio-calxeda-xgmac and
  vfio-amd-xgbe devices
* Fail with error if dma_max_mappings limit is hit
* Added 'x-pci-class-code' property to vfio-user-pci device
* Added a new helper to retrieve a VFIOPCIDevice from a VFIODevice
* Fixed IGD OpRegion detection

----------------------------------------------------------------
Cédric Le Goater (5):
      vfio: Remove 'vfio-amd-xgbe' device
      vfio: Remove 'vfio-calxeda-xgmac' device
      vfio: Remove 'vfio-platform'
      vfio: Move vfio-region.h under hw/vfio/
      vfio: Report an error when the 'dma_max_mappings' limit is reached

Glenn Miles (1):
      MAINTAINERS: Add myself as reviewer for PowerNV and XIVE

John Levon (1):
      hw/vfio-user: add x-pci-class-code

Mark Cave-Ayland (21):
      vfio/vfio-container-base.h: update VFIOContainerBase declaration
      vfio/vfio-container.h: update VFIOContainer declaration
      hw/vfio/cpr-legacy.c: use QOM casts where appropriate
      hw/vfio/container.c: use QOM casts where appropriate
      ppc/spapr_pci_vfio.c: use QOM casts where appropriate
      vfio/spapr.c: use QOM casts where appropriate
      vfio/vfio-container.h: rename VFIOContainer bcontainer field to parent_obj
      vfio-user/container.h: update VFIOUserContainer declaration
      vfio/container.c: use QOM casts where appropriate
      vfio-user/container.h: rename VFIOUserContainer bcontainer field to parent_obj
      vfio-user/pci.c: update VFIOUserPCIDevice declaration
      vfio-user/pci.c: use QOM casts where appropriate
      vfio-user/pci.c: rename VFIOUserPCIDevice device field to parent_obj
      vfio/pci.h: update VFIOPCIDevice declaration
      vfio/pci.c: use QOM casts where appropriate
      vfio/pci-quirks.c: use QOM casts where appropriate
      vfio/cpr.c: use QOM casts where appropriate
      vfio/igd.c: use QOM casts where appropriate
      vfio-user/pci.c: use QOM casts where appropriate
      s390x/s390-pci-vfio.c: use QOM casts where appropriate
      vfio/pci.h: rename VFIOPCIDevice pdev field to parent_obj

Steve Sistare (1):
      vfio/container: set error on cpr failure

Tomita Moeko (1):
      vfio/igd: Enable quirks when IGD is not the primary display

Zhenzhong Duan (1):
      vfio: Introduce helper vfio_pci_from_vfio_device()

 MAINTAINERS                           |   2 +
 docs/about/deprecated.rst             |  25 --
 docs/about/removed-features.rst       |  25 ++
 docs/devel/kconfig.rst                |   2 -
 hw/vfio-user/container.h              |   7 +-
 hw/vfio/pci.h                         |  20 +-
 {include/hw => hw}/vfio/vfio-region.h |   0
 include/hw/vfio/vfio-amd-xgbe.h       |  46 ---
 include/hw/vfio/vfio-calxeda-xgmac.h  |  43 --
 include/hw/vfio/vfio-container-base.h |  13 +-
 include/hw/vfio/vfio-container.h      |   7 +-
 include/hw/vfio/vfio-device.h         |   2 +-
 include/hw/vfio/vfio-platform.h       |  78 ----
 hw/arm/virt.c                         |   5 -
 hw/core/sysbus-fdt.c                  | 383 ------------------
 hw/ppc/spapr_pci_vfio.c               |   2 +-
 hw/s390x/s390-pci-vfio.c              |  14 +-
 hw/vfio-user/container.c              |  26 +-
 hw/vfio-user/pci.c                    |  18 +-
 hw/vfio/amd-xgbe.c                    |  61 ---
 hw/vfio/calxeda-xgmac.c               |  61 ---
 hw/vfio/container.c                   |  35 +-
 hw/vfio/cpr-legacy.c                  |  14 +-
 hw/vfio/cpr.c                         |  12 +-
 hw/vfio/device.c                      |   2 +-
 hw/vfio/igd.c                         |  45 ++-
 hw/vfio/iommufd.c                     |   4 +-
 hw/vfio/listener.c                    |  20 +-
 hw/vfio/pci-quirks.c                  |  48 ++-
 hw/vfio/pci.c                         | 217 +++++++----
 hw/vfio/platform.c                    | 716 ----------------------------------
 hw/vfio/spapr.c                       |  16 +-
 hw/arm/Kconfig                        |   3 -
 hw/vfio/Kconfig                       |  16 -
 hw/vfio/meson.build                   |   3 -
 hw/vfio/trace-events                  |  11 -
 36 files changed, 329 insertions(+), 1673 deletions(-)
 rename {include/hw => hw}/vfio/vfio-region.h (100%)
 delete mode 100644 include/hw/vfio/vfio-amd-xgbe.h
 delete mode 100644 include/hw/vfio/vfio-calxeda-xgmac.h
 delete mode 100644 include/hw/vfio/vfio-platform.h
 delete mode 100644 hw/vfio/amd-xgbe.c
 delete mode 100644 hw/vfio/calxeda-xgmac.c
 delete mode 100644 hw/vfio/platform.c