]> git.proxmox.com Git - mirror_qemu.git/commit
vfio/container: Rename vfio_init_container to vfio_set_iommu
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Thu, 21 Dec 2023 02:45:17 +0000 (10:45 +0800)
committerCédric Le Goater <clg@redhat.com>
Fri, 5 Jan 2024 20:25:20 +0000 (21:25 +0100)
commit9f734a117cbf63b03577b46c8cad8ad88ec6dced
treebbfb686942409bfcbc3c379c5e4216d18eb5172f
parent6ba254801f6bc7f3ef68a6414f1b107237c7eb26
vfio/container: Rename vfio_init_container to vfio_set_iommu

vfio_container_init() and vfio_init_container() names are confusing
especially when we see vfio_init_container() calls vfio_container_init().

vfio_container_init() operates on base container which is consistent
with all routines handling 'VFIOContainerBase *' ops.

vfio_init_container() operates on legacy container and setup IOMMU
context with ioctl(VFIO_SET_IOMMU).

So choose to rename vfio_init_container to vfio_set_iommu to avoid
the confusion.

No functional change intended.

Suggested-by: Cédric Le Goater <clg@redhat.com>
Signed-off-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c