Lines Matching refs:group

67 IOMMU API therefore supports a notion of IOMMU groups.  A group is
71 While the group is the minimum granularity that must be used to
83 The user needs to add a group into the container for the next level
85 group associated with the desired device. This can be done using
88 VFIO group will appear for the group as /dev/vfio/$GROUP, where
89 $GROUP is the IOMMU group number of which the device is a member.
90 If the IOMMU group contains multiple devices, each will need to
91 be bound to a VFIO driver before operations on the VFIO group
94 group available, but not that particular device). TBD - interface
97 Once the group is ready, it may be added to the container by opening
98 the VFIO group character device (/dev/vfio/$GROUP) and using the
102 be set to the same container. If a group fails to set to a container
106 With a group (or groups) attached to a container, the remaining
109 device within a group using an ioctl on the VFIO group file descriptor.
124 This device is therefore in IOMMU group 26. This device is on the
126 group:
130 Binding this device to the vfio-pci driver creates the VFIO group
131 character devices for this group:
138 Now we need to look at what other devices are in the group to free
151 need to add device 0000:06:0d.1 to the group following the same
157 The final step is to provide the user with access to the group if
165 group and can access them as follows:
167 int container, group, device, i;
183 /* Open the group */
184 group = open("/dev/vfio/26", O_RDWR);
186 /* Test the group is viable and available */
187 ioctl(group, VFIO_GROUP_GET_STATUS, &group_status);
192 /* Add the group to the container */
193 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
211 device = ioctl(group, VFIO_GROUP_GET_DEVICE_FD, "0000:06:0d.0");
292 1) On older systems (POWER7 with P5IOC2/IODA1) only one IOMMU group per
294 one table per a IOMMU group which is a Partitionable Endpoint (PE)
336 /* Add the group to the container */
337 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
361 device = ioctl(group, VFIO_GROUP_GET_DEVICE_FD, "0000:06:0d.0");
376 * PE, and put child devices belonging to same IOMMU group to the
497 IOMMU driver to group multi-function PCI devices together