diff options
| author | Pengfei Xu <pengfei.xu@intel.com> | 2023-09-20 17:34:56 +0800 |
|---|---|---|
| committer | Aleksandr Nogikh <nogikh@google.com> | 2023-09-28 10:02:36 +0000 |
| commit | 0aebb3aec9cc04ba85e8e866b551669724768e9f (patch) | |
| tree | 0427204253f3cb538730cff4bcad7055883dbf87 /sys | |
| parent | 22e9f18eb65ee5f71f8c2bb5d19e7d303ba08942 (diff) | |
sys/linux: correct the md_check_refs variable length and uptr
Based on Linux kernel iommufd_test.h line 68 struct check_refs:
https://github.com/torvalds/linux/blob/master/drivers/iommu/iommufd/iommufd_test.h
correct the md_check_refs variable length and uptr in correct position.
Signed-off-by: Pengfei Xu <pengfei.xu@intel.com>
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/linux/dev_iommu.txt | 2 | ||||
| -rw-r--r-- | sys/linux/test/dev_iommu | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/linux/dev_iommu.txt b/sys/linux/dev_iommu.txt index af1914d45..7abda765b 100644 --- a/sys/linux/dev_iommu.txt +++ b/sys/linux/dev_iommu.txt @@ -242,8 +242,8 @@ iommu_test_cmd$md_check_refs { op const[IOMMU_TEST_OP_MD_CHECK_REFS, int32] id fd_access __reserved const[0x0, int32] - uptr ptr64[in, array[int8]] length len[uptr, int64] + uptr ptr64[in, array[int8]] refs int32 } [size[IOMMU_TEST_CMD_SIZE]] diff --git a/sys/linux/test/dev_iommu b/sys/linux/test/dev_iommu index 04be5492f..354b0abaa 100644 --- a/sys/linux/test/dev_iommu +++ b/sys/linux/test/dev_iommu @@ -54,7 +54,7 @@ ioctl$IOMMU_TEST_OP_DESTROY_ACCESS_PAGES(r0, 0x3ba0, &AUTO={0x38, 0x6, r2, 0x0, ioctl$IOMMU_IOAS_MAP(r0, 0x3b85, &AUTO={0x28, 0x7, r1, 0x0, &(0x7f00000a0000)='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x1000, 0x1c}) ioctl$IOMMU_TEST_OP_MD_CHECK_MAP(r0, 0x3ba0, &AUTO={0x38, 0x3, r2, 0x0, 0x1c, 0x1000, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL'}) -ioctl$IOMMU_TEST_OP_MD_CHECK_REFS(r0, 0x3ba0, &AUTO={0x38, 0x4, r2, 0x0, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x800, 0x1}) +ioctl$IOMMU_TEST_OP_MD_CHECK_REFS(r0, 0x3ba0, &AUTO={0x38, 0x4, r2, 0x0, 0x800, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x1}) ioctl$IOMMU_IOAS_UNMAP(r0, 0x3b86, &AUTO={0x18, r1, 0x1c, 0x800}) close(r2) |
