Lines Matching defs:iommufd

2  * iommufd container backend
16 #include <linux/iommufd.h>
22 #include "system/iommufd.h"
30 #include "vfio-iommufd.h"
106 IOMMUFDBackend *iommufd = vbasedev->iommufd;
112 if (!iommufd_backend_connect(iommufd, errp)) {
129 /* Bind device to iommufd */
130 bind.iommufd = iommufd->fd;
132 error_setg_errno(errp, errno, "error bind device fd=%d to iommufd=%d",
133 vbasedev->fd, bind.iommufd);
138 trace_iommufd_cdev_connect_and_bind(bind.iommufd, vbasedev->name,
146 iommufd_backend_disconnect(iommufd);
154 iommufd_backend_disconnect(vbasedev->iommufd);
284 int iommufd = vbasedev->iommufd->fd;
291 /* Attach device to an IOAS or hwpt within iommufd */
294 "[iommufd=%d] error attach %s (%d) to id=%d",
295 iommufd, vbasedev->name, vbasedev->fd, id);
299 trace_iommufd_cdev_attach_ioas_hwpt(iommufd, vbasedev->name,
306 int iommufd = vbasedev->iommufd->fd;
317 trace_iommufd_cdev_detach_ioas_hwpt(iommufd, vbasedev->name);
326 IOMMUFDBackend *iommufd = vbasedev->iommufd;
373 if (!iommufd_backend_get_device_info(vbasedev->iommufd, vbasedev->devid,
387 if (!iommufd_backend_alloc_hwpt(iommufd, vbasedev->devid,
564 vbasedev->iommufd != container->be) {
599 if (!iommufd_backend_alloc_ioas(vbasedev->iommufd, &ioas_id, errp)) {
603 trace_iommufd_cdev_alloc_ioas(vbasedev->iommufd->fd, ioas_id);
607 container->be = vbasedev->iommufd;
805 * are either bound to same iommufd or within same iommu_groups as
806 * one of the iommufd bound devices.
829 /* Use zero length array for hot reset with iommufd backend */
906 if (!iommufd_backend_get_device_info(vdev->iommufd, vdev->devid, &type,
917 idev->iommufd = vdev->iommufd;