]> git.ipfire.org Git - thirdparty/qemu.git/commit
vfio/{iommufd,container}: Remove caps::aw_bits
authorJoao Martins <joao.m.martins@oracle.com>
Mon, 22 Jul 2024 21:13:19 +0000 (22:13 +0100)
committerCédric Le Goater <clg@redhat.com>
Tue, 23 Jul 2024 15:14:52 +0000 (17:14 +0200)
commit6c635326425091e164b563a7ce96408ef74ff2ec
treea1271a3483c277bd1095891769c0b4521ae0f50a
parent5b1e96e654036a65d3edb2671281e1a30c6f5ce7
vfio/{iommufd,container}: Remove caps::aw_bits

Remove caps::aw_bits which requires the bcontainer::iova_ranges being
initialized after device is actually attached. Instead defer that to
.get_cap() and call vfio_device_get_aw_bits() directly.

This is in preparation for HostIOMMUDevice::realize() being called early
during attach_device().

Suggested-by: Zhenzhong Duan <zhenzhong.duan@intel.com>
Signed-off-by: Joao Martins <joao.m.martins@oracle.com>
Reviewed-by: Cédric Le Goater <clg@redhat.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
backends/iommufd.c
hw/vfio/container.c
hw/vfio/iommufd.c
include/sysemu/host_iommu_device.h