diff options
| author | Aleksandr Nogikh <nogikh@google.com> | 2024-10-14 12:25:21 +0200 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2024-10-14 19:43:15 +0000 |
| commit | 25a669a944a3f6c35bfb05123e5cd2215fd5d23b (patch) | |
| tree | e1c4fd3db5320c84c5c8d5d5daf7bc0d06c6b3e8 /sys/linux/test/dev_iommu_vfio | |
| parent | 4ecf61d06a754a3980c8a38513aded6f0db9ec2b (diff) | |
sys/linux/test: split dev_iommu
The test has become too big (>40 calls).
Split off dev_iommu_vfio and remove the overlap with dev_iommu_hwpt.
Diffstat (limited to 'sys/linux/test/dev_iommu_vfio')
| -rw-r--r-- | sys/linux/test/dev_iommu_vfio | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/sys/linux/test/dev_iommu_vfio b/sys/linux/test/dev_iommu_vfio new file mode 100644 index 000000000..204b4e03b --- /dev/null +++ b/sys/linux/test/dev_iommu_vfio @@ -0,0 +1,18 @@ +r0 = openat$iommufd(0xffffffffffffff9c, &AUTO='/dev/iommu\x00', 0x0, 0x0) +ioctl$IOMMU_IOAS_ALLOC(r0, 0x3b81, &AUTO={0xc, 0x0, <r1=>0x0}) +ioctl$IOMMU_VFIO_IOAS$SET(r0, 0x3b88, &AUTO={0xc, r1, 0x1, 0x0}) +ioctl$IOMMU_VFIO_IOAS$GET(r0, 0x3b88, &AUTO={0xc, 0x0, 0x0, 0x0}) +ioctl$IOMMU_VFIO_IOAS$CLEAR(r0, 0x3b88, &AUTO={0xc, 0x0, 0x2, 0x0}) + +ioctl$IOMMU_IOAS_ALLOW_IOVAS(r0, 0x3b82, &AUTO={0x20, r1, 0x0, 0x0, &AUTO=[]}) + +ioctl$IOMMU_VFIO_IOAS$SET(r0, 0x3b88, &AUTO={0xc, r1, 0x1, 0x0}) +ioctl$IOMMU_VFIO_GET_API_VERSION(r0, 0x3b64) +ioctl$IOMMU_VFIO_SET_IOMMU(r0, 0x3b66, 0x3) +ioctl$IOMMU_VFIO_CHECK_EXTENSION(r0, 0x3b65, 0x9) +ioctl$IOMMU_VFIO_IOMMU_GET_INFO(r0, 0x3b70, &AUTO={0x70, 0x0, 0x0, 0x0, {{0x0, 0x0, 0x0}, 0x0}, {{0x0, 0x0, 0x0}, 0x0, 0x0, [{0x0, 0x0}]}}) +ioctl$IOMMU_VFIO_IOMMU_MAP_DMA(r0, 0x3b71, &AUTO={0x20, 0x0, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x1c, 0x1c}) +ioctl$IOMMU_VFIO_IOMMU_UNMAP_DMA(r0, 0x3b72, &AUTO={0x18, 0x0, 0x1c, 0x1c, ''}) +ioctl$IOMMU_IOAS_UNMAP$ALL(r0, 0x3b86, &AUTO={0x18, r1, 0, 0xFFFFFFFFFFFFFFFF}) +ioctl$IOMMU_DESTROY$ioas(r0, 0x3b80, &AUTO={0x8, r1}) +close(r0) |
