summary refs log tree commit diff stats
path: root/hw/mips/mips_int.c
diff options
context:
space:
mode:
authorZhenzhong Duan <zhenzhong.duan@intel.com>2023-12-21 10:45:17 +0800
committerCédric Le Goater <clg@redhat.com>2024-01-05 21:25:20 +0100
commit9f734a117cbf63b03577b46c8cad8ad88ec6dced (patch)
treebbfb686942409bfcbc3c379c5e4216d18eb5172f /hw/mips/mips_int.c
parent6ba254801f6bc7f3ef68a6414f1b107237c7eb26 (diff)
downloadfocaccia-qemu-9f734a117cbf63b03577b46c8cad8ad88ec6dced.tar.gz
focaccia-qemu-9f734a117cbf63b03577b46c8cad8ad88ec6dced.zip
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>
Diffstat (limited to 'hw/mips/mips_int.c')
0 files changed, 0 insertions, 0 deletions