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);
329 in the container or IOAS attached by the device. Drivers which make
340 container is supported as an IOMMU table is allocated at the boot time,
346 container.
373 enables the container. The locked pages accounting
378 disables the container.
388 /* Add the group to the container */
389 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
392 ioctl(container, VFIO_SET_IOMMU, VFIO_SPAPR_TCE_IOMMU)
396 ioctl(container, VFIO_IOMMU_SPAPR_TCE_GET_INFO, &spapr_iommu_info);
398 if (ioctl(container, VFIO_IOMMU_ENABLE))
399 /* Cannot enable container, may be low rlimit */
410 ioctl(container, VFIO_IOMMU_MAP_DMA, &dma_map);
421 ioctl(container, VFIO_CHECK_EXTENSION, VFIO_EEH);
425 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
434 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
450 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
458 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
470 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
478 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
480 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
484 ioctl(container, VFIO_EEH_PE_OP, &pe_op);
511 The ranges are stored in a linked list in a VFIO container.