]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/migration: Move migration v1 logic to vfio_migration_init()
authorAvihai Horon <avihaih@nvidia.com>
Thu, 16 Feb 2023 14:36:25 +0000 (16:36 +0200)
committerAlex Williamson <alex.williamson@redhat.com>
Thu, 16 Feb 2023 19:13:46 +0000 (12:13 -0700)
commit16fe4e8ab7588896f67ffc8a1d0dc1b0c698b064
treefa7562d56d6b3d94c19b6c6c82091aa64aa6a0e6
parent29d81b71aa2ac0f594d881460e22e291a9417a74
vfio/migration: Move migration v1 logic to vfio_migration_init()

Move vfio_dev_get_region_info() logic from vfio_migration_probe() to
vfio_migration_init(). This logic is specific to v1 protocol and moving
it will make it easier to add the v2 protocol implementation later.
No functional changes intended.

Signed-off-by: Avihai Horon <avihaih@nvidia.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Link: https://lore.kernel.org/r/20230216143630.25610-7-avihaih@nvidia.com
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
hw/vfio/migration.c
hw/vfio/trace-events