qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] vfio/container: Rename vfio_init_container to vfio_set_iommu


From: Cédric Le Goater
Subject: Re: [PATCH] vfio/container: Rename vfio_init_container to vfio_set_iommu
Date: Tue, 2 Jan 2024 09:16:40 +0100
User-agent: Mozilla Thunderbird

On 12/21/23 03:45, Zhenzhong Duan wrote:
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>


Applied to vfio-next.

Thanks,

C.




reply via email to

[Prev in Thread] Current Thread [Next in Thread]