Skip to content

Commit dac09b5

Browse files
Zi Shen LimAlex Williamson
authored andcommitted
vfio: fix documentation
Signed-off-by: Zi Shen Lim <zishen.lim@linaro.org> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
1 parent 8b27ee6 commit dac09b5

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Documentation/vfio.txt

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -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, &reg);
232+
ioctl(device, VFIO_DEVICE_GET_IRQ_INFO, &irq);
233233

234234
/* Setup IRQs... eventfds, VFIO_DEVICE_SET_IRQS */
235235
}

0 commit comments

Comments
 (0)