MAINTAINERS | 14 +-
docs/interop/vhost-user.rst | 8 +-
docs/pcie.txt | 6 +-
docs/specs/pci-ids.rst | 4 +
qapi/virtio.json | 5 +-
hw/i386/amd_iommu.h | 3 +
hw/i386/intel_iommu_accel.h | 16 +-
hw/i386/intel_iommu_internal.h | 3 +
hw/pci-bridge/pci_expander_bridge_common.h | 28 ++
include/hw/cxl/cxl_device.h | 3 +
include/hw/i386/intel_iommu.h | 6 +
include/hw/i386/x86-iommu.h | 6 +
...expander_bridge.h => pci_expander_bridge_cxl.h} | 0
include/hw/pci/pci.h | 14 +
include/hw/vfio/vfio-cpr.h | 7 +-
include/hw/virtio/vhost-backend.h | 2 +
include/hw/virtio/vhost.h | 80 ++++
include/hw/virtio/virtio-dmabuf.h | 8 +
include/hw/virtio/virtio-net.h | 1 +
include/migration/cpr.h | 2 +-
include/migration/misc.h | 5 +
include/net/net.h | 3 +
include/qemu/event_notifier.h | 1 +
include/system/iommufd.h | 7 +-
net/tap_int.h | 1 +
backends/hostmem-memfd.c | 5 +-
backends/hostmem-shm.c | 5 +-
backends/iommufd.c | 32 +-
contrib/vhost-user-bridge/vhost-user-bridge.c | 2 +-
hw/arm/smmuv3-accel.c | 6 +-
hw/arm/virt.c | 1 -
hw/audio/virtio-snd.c | 3 +-
hw/core/machine.c | 1 +
hw/cxl/cxl-host.c | 2 +-
hw/cxl/cxl-mailbox-utils.c | 22 +-
hw/display/virtio-dmabuf.c | 18 +
hw/i386/acpi-build.c | 152 ++++----
hw/i386/amd_iommu.c | 75 +++-
hw/i386/intel_iommu.c | 26 +-
hw/i386/intel_iommu_accel.c | 309 ++++++++++++++-
hw/i386/multiboot.c | 5 -
hw/i386/x86-iommu-stub.c | 5 +
hw/i386/x86-iommu.c | 16 +
hw/intc/ioapic.c | 3 +-
hw/mem/cxl_type3.c | 60 ++-
hw/net/virtio-net.c | 50 +--
hw/pci-bridge/gen_pcie_downstream_port.c | 202 ++++++++++
hw/pci-bridge/gen_pcie_root_port.c | 6 +-
hw/pci-bridge/gen_pcie_upstream_port.c | 177 +++++++++
hw/pci-bridge/pci_expander_bridge.c | 194 +---------
hw/pci-bridge/pci_expander_bridge_cxl.c | 201 ++++++++++
hw/pci-bridge/pci_expander_bridge_stubs.c | 14 -
hw/pci/pci.c | 42 +-
hw/pci/pcie.c | 26 +-
hw/pci/pcie_aer.c | 2 +-
hw/pci/pcie_sriov.c | 16 +-
hw/remote/iohub.c | 11 +-
hw/vfio/container-legacy.c | 7 +-
hw/vfio/cpr-legacy.c | 31 +-
hw/vfio/cpr.c | 6 +-
hw/vfio/iommufd.c | 2 +-
hw/vfio/pci.c | 5 +-
hw/virtio/vdpa-dev.c | 30 +-
hw/virtio/vhost-kernel.c | 6 +
hw/virtio/vhost-shadow-virtqueue.c | 44 ++-
hw/virtio/vhost-user-stub.c | 5 +
hw/virtio/vhost-user.c | 5 +-
hw/virtio/vhost-vsock.c | 193 +++++++++-
hw/virtio/vhost.c | 141 ++++++-
hw/virtio/virtio-hmp-cmds.c | 6 +-
hw/virtio/virtio-mem.c | 2 +-
hw/virtio/virtio-qmp.c | 21 +-
migration/cpr.c | 64 ++--
migration/migration.c | 10 +
migration/options.c | 13 +
net/net.c | 9 +
net/tap-bsd.c | 5 +
net/tap-linux.c | 30 ++
net/tap-solaris.c | 5 +
net/tap-stub.c | 5 +
net/tap.c | 19 +-
subprojects/libvhost-user/libvhost-user.c | 7 +
system/physmem.c | 5 +-
target/i386/kvm/kvm.c | 15 +-
tests/qtest/migration/cpr-tests.c | 133 ++++++-
tests/unit/test-cpr.c | 98 +++++
tests/unit/test-virtio-dmabuf.c | 43 +++
util/event_notifier-posix.c | 10 +
backends/trace-events | 3 +-
hw/i386/trace-events | 2 +
hw/pci-bridge/meson.build | 5 +-
tests/functional/x86_64/meson.build | 4 +
tests/functional/x86_64/test_pcie_switch.py | 98 +++++
tests/functional/x86_64/test_tap_migration.py | 425 +++++++++++++++++++++
tests/functional/x86_64/test_vhost_user_bridge.py | 6 -
tests/functional/x86_64/test_vhost_vsock_cpr.py | 347 +++++++++++++++++
tests/unit/meson.build | 1 +
97 files changed, 3256 insertions(+), 532 deletions(-)
create mode 100644 hw/pci-bridge/pci_expander_bridge_common.h
rename include/hw/pci-bridge/{pci_expander_bridge.h => pci_expander_bridge_cxl.h} (100%)
create mode 100644 hw/pci-bridge/gen_pcie_downstream_port.c
create mode 100644 hw/pci-bridge/gen_pcie_upstream_port.c
create mode 100644 hw/pci-bridge/pci_expander_bridge_cxl.c
delete mode 100644 hw/pci-bridge/pci_expander_bridge_stubs.c
create mode 100644 tests/unit/test-cpr.c
create mode 100755 tests/functional/x86_64/test_pcie_switch.py
create mode 100755 tests/functional/x86_64/test_tap_migration.py
create mode 100755 tests/functional/x86_64/test_vhost_vsock_cpr.py