vfio: Remove hiod_typename property

Because we handle host IOMMU device creation in each container backend,
we know which type name to use, so hiod_typename property is useless
now, just remove it.

Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Link: https://lore.kernel.org/qemu-devel/20250423072824.3647952-6-zhenzhong.duan@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
This commit is contained in:
Zhenzhong Duan 2025-04-23 15:28:24 +08:00 committed by Cédric Le Goater
parent 0805f829a1
commit fdd7596783
3 changed files with 0 additions and 7 deletions

View file

@ -1103,8 +1103,6 @@ static void vfio_iommu_legacy_class_init(ObjectClass *klass, void *data)
{ {
VFIOIOMMUClass *vioc = VFIO_IOMMU_CLASS(klass); VFIOIOMMUClass *vioc = VFIO_IOMMU_CLASS(klass);
vioc->hiod_typename = TYPE_HOST_IOMMU_DEVICE_LEGACY_VFIO;
vioc->setup = vfio_legacy_setup; vioc->setup = vfio_legacy_setup;
vioc->dma_map = vfio_legacy_dma_map; vioc->dma_map = vfio_legacy_dma_map;
vioc->dma_unmap = vfio_legacy_dma_unmap; vioc->dma_unmap = vfio_legacy_dma_unmap;

View file

@ -795,8 +795,6 @@ static void vfio_iommu_iommufd_class_init(ObjectClass *klass, void *data)
{ {
VFIOIOMMUClass *vioc = VFIO_IOMMU_CLASS(klass); VFIOIOMMUClass *vioc = VFIO_IOMMU_CLASS(klass);
vioc->hiod_typename = TYPE_HOST_IOMMU_DEVICE_IOMMUFD_VFIO;
vioc->dma_map = iommufd_cdev_map; vioc->dma_map = iommufd_cdev_map;
vioc->dma_unmap = iommufd_cdev_unmap; vioc->dma_unmap = iommufd_cdev_unmap;
vioc->attach_device = iommufd_cdev_attach; vioc->attach_device = iommufd_cdev_attach;

View file

@ -115,9 +115,6 @@ OBJECT_DECLARE_TYPE(VFIOContainerBase, VFIOIOMMUClass, VFIO_IOMMU)
struct VFIOIOMMUClass { struct VFIOIOMMUClass {
ObjectClass parent_class; ObjectClass parent_class;
/* Properties */
const char *hiod_typename;
/* basic feature */ /* basic feature */
bool (*setup)(VFIOContainerBase *bcontainer, Error **errp); bool (*setup)(VFIOContainerBase *bcontainer, Error **errp);
int (*dma_map)(const VFIOContainerBase *bcontainer, int (*dma_map)(const VFIOContainerBase *bcontainer,