]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio: Cleanup host IOMMU device creation
authorZhenzhong Duan <zhenzhong.duan@intel.com>
Wed, 23 Apr 2025 07:28:23 +0000 (15:28 +0800)
committerCédric Le Goater <clg@redhat.com>
Fri, 25 Apr 2025 07:01:38 +0000 (09:01 +0200)
commit0805f829a1aa07888fa7378f9421d37c521c4193
treee39c6d3132eefd6e5f3b0a3cf6124b6cc2d370fe
parent0327ffc8530e9733526fab6c790ad5f0661b008d
vfio: Cleanup host IOMMU device creation

realize() is now moved after attachment, do the same for hiod creation.
Introduce a new function vfio_device_hiod_create_and_realize() to do
them all in one go.

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>
Link: https://lore.kernel.org/qemu-devel/20250423072824.3647952-5-zhenzhong.duan@intel.com
Signed-off-by: Cédric Le Goater <clg@redhat.com>
hw/vfio/container.c
hw/vfio/device.c
hw/vfio/iommufd.c
include/hw/vfio/vfio-device.h