Lines Matching refs:container

80 a container class, which may hold one or more groups.  A container
83 On its own, the container provides little functionality, with all
85 The user needs to add a group into the container for the next level
99 Once the group is ready, it may be added to the container by opening
102 previously opened container file. If desired and if the IOMMU driver
104 be set to the same container. If a group fails to set to a container
105 with existing groups, a new empty container will need to be used
108 With a group (or groups) attached to a container, the remaining
169 int container, group, device, i;
176 /* Create a new container */
177 container = open("/dev/vfio/vfio", O_RDWR);
179 if (ioctl(container, VFIO_GET_API_VERSION) != VFIO_API_VERSION)
182 if (!ioctl(container, VFIO_CHECK_EXTENSION, VFIO_TYPE1_IOMMU))
194 /* Add the group to the container */
195 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
198 ioctl(container, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU);
201 ioctl(container, VFIO_IOMMU_GET_INFO, &iommu_info);
210 ioctl(container, VFIO_IOMMU_MAP_DMA, &dma_map);
250 vfio container and group model is intended to be deprecated.
256 container and IOMMU backend interfaces. The compatibility mode can
257 also be accessed if the VFIO container interface, ie. /dev/vfio/vfio is
287 VFIO device cdev doesn't rely on VFIO group/container/iommu drivers.
462 in the container or IOAS attached by the device. Drivers which make
473 container is supported as an IOMMU table is allocated at the boot time,
479 container.
506 enables the container. The locked pages accounting
511 disables the container.
521 /* Add the group to the container */
522 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
525 ioctl(container, VFIO_SET_IOMMU, VFIO_SPAPR_TCE_IOMMU)
529 ioctl(container, VFIO_IOMMU_SPAPR_TCE_GET_INFO, &spapr_iommu_info);
531 if (ioctl(container, VFIO_IOMMU_ENABLE))
532 /* Cannot enable container, may be low rlimit */
543 ioctl(container, VFIO_IOMMU_MAP_DMA, &dma_map);
554 ioctl(container, VFIO_CHECK_EXTENSION, VFIO_EEH);
558 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
567 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
583 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
591 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
603 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
611 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
613 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
617 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
644 The ranges are stored in a linked list in a VFIO container.