aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Documentation/vfio.txt6
1 files changed, 3 insertions, 3 deletions
diff --git a/Documentation/vfio.txt b/Documentation/vfio.txt
index 8eda3635a17d..e71782a4f2a4 100644
--- a/Documentation/vfio.txt
+++ b/Documentation/vfio.txt
@@ -172,12 +172,12 @@ group and can access them as follows:
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 */
175 container = open("/dev/vfio/vfio, O_RDWR); 175 container = open("/dev/vfio/vfio", O_RDWR);
176 176
177 if (ioctl(container, VFIO_GET_API_VERSION) != VFIO_API_VERSION) 177 if (ioctl(container, VFIO_GET_API_VERSION) != VFIO_API_VERSION)
178 /* Unknown API version */ 178 /* Unknown API version */
179 179
180 if (!ioctl(container, VFIO_CHECK_EXTENSION, VFIO_X86_IOMMU)) 180 if (!ioctl(container, VFIO_CHECK_EXTENSION, VFIO_TYPE1_IOMMU))
181 /* Doesn't support the IOMMU driver we want. */ 181 /* Doesn't support the IOMMU driver we want. */
182 182
183 /* Open the group */ 183 /* Open the group */
@@ -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_X86_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);