diff options
author | Zi Shen Lim <zishen.lim@linaro.org> | 2013-09-05 18:36:21 -0400 |
---|---|---|
committer | Alex Williamson <alex.williamson@redhat.com> | 2013-09-05 18:36:21 -0400 |
commit | dac09b57c0ff57e55dd6fa5109076c8af0468a75 (patch) | |
tree | 3cad09ac88786b58df3cdde761a7abb0d8fec3d1 /Documentation/vfio.txt | |
parent | 8b27ee60bfd6bbb84d2df28fa706c5c5081066ca (diff) |
vfio: fix documentation
Signed-off-by: Zi Shen Lim <zishen.lim@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'Documentation/vfio.txt')
-rw-r--r-- | Documentation/vfio.txt | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/vfio.txt b/Documentation/vfio.txt index d7993dcf8537..b9ca02370d46 100644 --- a/Documentation/vfio.txt +++ b/Documentation/vfio.txt | |||
@@ -167,8 +167,8 @@ group and can access them as follows: | |||
167 | int container, group, device, i; | 167 | int container, group, device, i; |
168 | struct vfio_group_status group_status = | 168 | struct vfio_group_status group_status = |
169 | { .argsz = sizeof(group_status) }; | 169 | { .argsz = sizeof(group_status) }; |
170 | struct vfio_iommu_x86_info iommu_info = { .argsz = sizeof(iommu_info) }; | 170 | struct vfio_iommu_type1_info iommu_info = { .argsz = sizeof(iommu_info) }; |
171 | struct vfio_iommu_x86_dma_map dma_map = { .argsz = sizeof(dma_map) }; | 171 | struct vfio_iommu_type1_dma_map dma_map = { .argsz = sizeof(dma_map) }; |
172 | struct vfio_device_info device_info = { .argsz = sizeof(device_info) }; | 172 | struct vfio_device_info device_info = { .argsz = sizeof(device_info) }; |
173 | 173 | ||
174 | /* Create a new container */ | 174 | /* Create a new container */ |
@@ -193,7 +193,7 @@ group and can access them as follows: | |||
193 | ioctl(group, VFIO_GROUP_SET_CONTAINER, &container); | 193 | ioctl(group, VFIO_GROUP_SET_CONTAINER, &container); |
194 | 194 | ||
195 | /* Enable the IOMMU model we want */ | 195 | /* Enable the IOMMU model we want */ |
196 | ioctl(container, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU) | 196 | ioctl(container, VFIO_SET_IOMMU, VFIO_TYPE1_IOMMU); |
197 | 197 | ||
198 | /* Get addition IOMMU info */ | 198 | /* Get addition IOMMU info */ |
199 | ioctl(container, VFIO_IOMMU_GET_INFO, &iommu_info); | 199 | ioctl(container, VFIO_IOMMU_GET_INFO, &iommu_info); |
@@ -229,7 +229,7 @@ group and can access them as follows: | |||
229 | 229 | ||
230 | irq.index = i; | 230 | irq.index = i; |
231 | 231 | ||
232 | ioctl(device, VFIO_DEVICE_GET_IRQ_INFO, ®); | 232 | ioctl(device, VFIO_DEVICE_GET_IRQ_INFO, &irq); |
233 | 233 | ||
234 | /* Setup IRQs... eventfds, VFIO_DEVICE_SET_IRQS */ | 234 | /* Setup IRQs... eventfds, VFIO_DEVICE_SET_IRQS */ |
235 | } | 235 | } |