MAINTAINERS | 1 + qapi/qapi-schema.json | 1 + qapi/vfio.json | 67 ++++++++ hw/vfio/pci.h | 13 +- include/exec/memory.h | 15 +- include/hw/vfio/vfio-common.h | 43 ++++-- include/hw/vfio/vfio-container-base.h | 55 +++++-- include/migration/misc.h | 2 +- include/sysemu/iommufd.h | 6 +- backends/iommufd.c | 29 ++-- hw/core/machine.c | 1 + hw/vfio/ap.c | 35 ++--- hw/vfio/ccw.c | 56 +++---- hw/vfio/common.c | 119 +++++++++------ hw/vfio/container-base.c | 18 +-- hw/vfio/container.c | 101 ++++++------ hw/vfio/cpr.c | 4 +- hw/vfio/display.c | 22 ++- hw/vfio/helpers.c | 36 ++--- hw/vfio/igd.c | 35 ++--- hw/vfio/iommufd.c | 109 ++++++------- hw/vfio/migration.c | 180 ++++++++++++++++------ hw/vfio/pci-quirks.c | 50 +++--- hw/vfio/pci.c | 280 +++++++++++++++++----------------- hw/vfio/platform.c | 66 ++++---- hw/vfio/spapr.c | 28 ++-- hw/virtio/vhost-vdpa.c | 5 +- migration/migration.c | 6 +- system/memory.c | 10 +- backends/trace-events | 4 +- hw/vfio/trace-events | 3 +- qapi/meson.build | 1 + 32 files changed, 806 insertions(+), 595 deletions(-) create mode 100644 qapi/vfio.json