@@ -167,8 +167,8 @@ group and can access them as follows:
167167 int container, group, device, i;
168168 struct vfio_group_status group_status =
169169 { .argsz = sizeof(group_status) };
170- struct vfio_iommu_x86_info iommu_info = { .argsz = sizeof(iommu_info) };
171- struct vfio_iommu_x86_dma_map dma_map = { .argsz = sizeof(dma_map) };
170+ struct vfio_iommu_type1_info iommu_info = { .argsz = sizeof(iommu_info) };
171+ struct vfio_iommu_type1_dma_map dma_map = { .argsz = sizeof(dma_map) };
172172 struct vfio_device_info device_info = { .argsz = sizeof(device_info) };
173173
174174 /* Create a new container */
@@ -193,7 +193,7 @@ group and can access them as follows:
193193 ioctl(group, VFIO_GROUP_SET_CONTAINER, &container);
194194
195195 /* Enable the IOMMU model we want */
196- ioctl(container, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU)
196+ ioctl(container, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU);
197197
198198 /* Get addition IOMMU info */
199199 ioctl(container, VFIO_IOMMU_GET_INFO, &iommu_info);
@@ -229,7 +229,7 @@ group and can access them as follows:
229229
230230 irq.index = i;
231231
232- ioctl(device, VFIO_DEVICE_GET_IRQ_INFO, ® );
232+ ioctl(device, VFIO_DEVICE_GET_IRQ_INFO, &irq );
233233
234234 /* Setup IRQs... eventfds, VFIO_DEVICE_SET_IRQS */
235235 }
0 commit comments