vfio/migration: Multifd device state transfer support - send side
authorMaciej S. Szmigiero <maciej.szmigiero@oracle.com>
Tue, 4 Mar 2025 22:03:57 +0000 (23:03 +0100)
committerCédric Le Goater <clg@redhat.com>
Thu, 6 Mar 2025 05:47:34 +0000 (06:47 +0100)
commit6d644baef20303fa4b2b342f556e26c2262b439f
treec9860c64d45af2112ea4875118042ba793a53117
parentb659c07c534490369ca0954f0116b05c4a063065
vfio/migration: Multifd device state transfer support - send side

Implement the multifd device state transfer via additional per-device
thread inside save_live_complete_precopy_thread handler.

Switch between doing the data transfer in the new handler and doing it
in the old save_state handler depending if VFIO multifd transfer is enabled
or not.

Signed-off-by: Maciej S. Szmigiero <maciej.szmigiero@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/4d727e2e0435e0022d50004e474077632830e08d.1741124640.git.maciej.szmigiero@oracle.com
[ clg: - Reordered savevm_vfio_handlers
       - Updated save_live_complete_precopy* documentation ]
Signed-off-by: Cédric Le Goater <clg@redhat.com>
docs/devel/migration/vfio.rst
hw/vfio/migration-multifd.c
hw/vfio/migration-multifd.h
hw/vfio/migration.c
hw/vfio/trace-events
include/hw/vfio/vfio-common.h