diff options
author | Alex Williamson <alex.williamson@redhat.com> | 2023-03-07 09:53:46 -0700 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2023-03-07 11:19:07 -0700 |
commit | 8249cffc626d0661d6c109aa0653cd9bb67cd676 (patch) | |
tree | e2b02cb851986b0d4385c519f9a23f7241b4beca /include | |
parent | 333f988d19878f6b96388a1a797c4e90e7ea0a69 (diff) | |
download | qemu-8249cffc626d0661d6c109aa0653cd9bb67cd676.zip qemu-8249cffc626d0661d6c109aa0653cd9bb67cd676.tar.gz qemu-8249cffc626d0661d6c109aa0653cd9bb67cd676.tar.bz2 |
vfio/migration: Rename entry points
Pick names that align with the section drivers should use them from,
avoiding the confusion of calling a _finalize() function from _exit()
and generalizing the actual _finalize() to handle removing the viommu
blocker.
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Joao Martins <joao.m.martins@oracle.com>
Link: https://lore.kernel.org/r/167820912978.606734.12740287349119694623.stgit@omen
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/hw/vfio/vfio-common.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/include/hw/vfio/vfio-common.h b/include/hw/vfio/vfio-common.h index 009bec3..eed244f 100644 --- a/include/hw/vfio/vfio-common.h +++ b/include/hw/vfio/vfio-common.h @@ -223,7 +223,6 @@ bool vfio_mig_active(void); int vfio_block_multiple_devices_migration(Error **errp); void vfio_unblock_multiple_devices_migration(void); int vfio_block_giommu_migration(Error **errp); -void vfio_unblock_giommu_migration(void); int64_t vfio_mig_bytes_transferred(void); #ifdef CONFIG_LINUX @@ -247,7 +246,8 @@ int vfio_spapr_create_window(VFIOContainer *container, int vfio_spapr_remove_window(VFIOContainer *container, hwaddr offset_within_address_space); -int vfio_migration_probe(VFIODevice *vbasedev, Error **errp); -void vfio_migration_finalize(VFIODevice *vbasedev); +int vfio_migration_realize(VFIODevice *vbasedev, Error **errp); +void vfio_migration_exit(VFIODevice *vbasedev); +void vfio_migration_finalize(void); #endif /* HW_VFIO_VFIO_COMMON_H */ |