Skip to content

Commit 99cedd5

Browse files
Steve Sistarelegoater
authored andcommitted
vfio/container: delete old cpr register
vfio_cpr_[un]register_container is no longer used since they were subsumed by container type-specific registration. Delete them. Signed-off-by: Steve Sistare <steven.sistare@oracle.com> Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Cédric Le Goater <clg@redhat.com> Link: https://lore.kernel.org/qemu-devel/1751493538-202042-21-git-send-email-steven.sistare@oracle.com Signed-off-by: Cédric Le Goater <clg@redhat.com>
1 parent 6ff4ccc commit 99cedd5

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

hw/vfio/cpr.c

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -29,19 +29,6 @@ int vfio_cpr_reboot_notifier(NotifierWithReturn *notifier,
2929
return 0;
3030
}
3131

32-
bool vfio_cpr_register_container(VFIOContainerBase *bcontainer, Error **errp)
33-
{
34-
migration_add_notifier_mode(&bcontainer->cpr_reboot_notifier,
35-
vfio_cpr_reboot_notifier,
36-
MIG_MODE_CPR_REBOOT);
37-
return true;
38-
}
39-
40-
void vfio_cpr_unregister_container(VFIOContainerBase *bcontainer)
41-
{
42-
migration_remove_notifier(&bcontainer->cpr_reboot_notifier);
43-
}
44-
4532
#define STRDUP_VECTOR_FD_NAME(vdev, name) \
4633
g_strdup_printf("%s_%s", (vdev)->vbasedev.name, (name))
4734

include/hw/vfio/vfio-cpr.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,6 @@ void vfio_legacy_cpr_unregister_container(struct VFIOContainer *container);
4545
int vfio_cpr_reboot_notifier(NotifierWithReturn *notifier, MigrationEvent *e,
4646
Error **errp);
4747

48-
bool vfio_cpr_register_container(struct VFIOContainerBase *bcontainer,
49-
Error **errp);
50-
void vfio_cpr_unregister_container(struct VFIOContainerBase *bcontainer);
51-
5248
bool vfio_iommufd_cpr_register_container(struct VFIOIOMMUFDContainer *container,
5349
Error **errp);
5450
void vfio_iommufd_cpr_unregister_container(

0 commit comments

Comments
 (0)