]> git.ipfire.org Git - thirdparty/qemu.git/commit
backends/iommufd: Introduce iommufd_backend_alloc_vdev
authorNicolin Chen <nicolinc@nvidia.com>
Thu, 29 Jan 2026 13:32:04 +0000 (13:32 +0000)
committerPeter Maydell <peter.maydell@linaro.org>
Thu, 29 Jan 2026 13:32:04 +0000 (13:32 +0000)
commitcd438bf9bdf75cc7251ffb968ea59e640fe096e6
tree24f00703a39999aed5ba584296385a4b2e515f7f
parentf2d31df0d92546a86e8cdbf51436db6aae8c167a
backends/iommufd: Introduce iommufd_backend_alloc_vdev

Add a helper to allocate an iommufd device's virtual device (in the user
space) per a viommu instance.

While at it, introduce a struct IOMMUFDVdev for later use by vendor
IOMMU implementations.

Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Shameer Kolothum <shameerali.kolothum.thodi@huawei.com>
Reviewed-by: Jonathan Cameron <jonathan.cameron@huawei.com>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Tested-by: Eric Auger <eric.auger@redhat.com>
Signed-off-by: Shameer Kolothum <skolothumtho@nvidia.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Message-id: 20260126104342.253965-3-skolothumtho@nvidia.com
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
backends/iommufd.c
backends/trace-events
include/system/iommufd.h