vfio/container: Remove vfio_container_init()
It's now empty. Reviewed-by: Zhenzhong Duan <zhenzhong.duan@intel.com> Reviewed-by: Eric Auger <eric.auger@redhat.com> Tested-by: Eric Auger <eric.auger@redhat.com> Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
parent
41d698b8d6
commit
2f7243cb8a
@ -83,11 +83,6 @@ int vfio_container_query_dirty_bitmap(const VFIOContainerBase *bcontainer,
|
||||
errp);
|
||||
}
|
||||
|
||||
void vfio_container_init(VFIOContainerBase *bcontainer,
|
||||
const VFIOIOMMUClass *ops)
|
||||
{
|
||||
}
|
||||
|
||||
void vfio_container_destroy(VFIOContainerBase *bcontainer)
|
||||
{
|
||||
VFIOGuestIOMMU *giommu, *tmp;
|
||||
|
@ -419,7 +419,6 @@ static VFIOContainer *vfio_create_container(int fd, VFIOGroup *group,
|
||||
Error **errp)
|
||||
{
|
||||
int iommu_type;
|
||||
const VFIOIOMMUClass *vioc;
|
||||
const char *vioc_name;
|
||||
VFIOContainer *container;
|
||||
|
||||
@ -433,12 +432,10 @@ static VFIOContainer *vfio_create_container(int fd, VFIOGroup *group,
|
||||
}
|
||||
|
||||
vioc_name = vfio_get_iommu_class_name(iommu_type);
|
||||
vioc = VFIO_IOMMU_CLASS(object_class_by_name(vioc_name));
|
||||
|
||||
container = VFIO_IOMMU_LEGACY(object_new(vioc_name));
|
||||
container->fd = fd;
|
||||
container->iommu_type = iommu_type;
|
||||
vfio_container_init(&container->bcontainer, vioc);
|
||||
return container;
|
||||
}
|
||||
|
||||
|
@ -357,7 +357,6 @@ static bool iommufd_cdev_attach(const char *name, VFIODevice *vbasedev,
|
||||
container->ioas_id = ioas_id;
|
||||
|
||||
bcontainer = &container->bcontainer;
|
||||
vfio_container_init(bcontainer, iommufd_vioc);
|
||||
vfio_address_space_insert(space, bcontainer);
|
||||
|
||||
if (!iommufd_cdev_attach_container(vbasedev, container, errp)) {
|
||||
|
@ -86,8 +86,6 @@ int vfio_container_set_dirty_page_tracking(VFIOContainerBase *bcontainer,
|
||||
int vfio_container_query_dirty_bitmap(const VFIOContainerBase *bcontainer,
|
||||
VFIOBitmap *vbmap, hwaddr iova, hwaddr size, Error **errp);
|
||||
|
||||
void vfio_container_init(VFIOContainerBase *bcontainer,
|
||||
const VFIOIOMMUClass *ops);
|
||||
void vfio_container_destroy(VFIOContainerBase *bcontainer);
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user