From 25a669a944a3f6c35bfb05123e5cd2215fd5d23b Mon Sep 17 00:00:00 2001 From: Aleksandr Nogikh Date: Mon, 14 Oct 2024 12:25:21 +0200 Subject: 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. --- sys/linux/test/dev_iommu_hwpt | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 sys/linux/test/dev_iommu_hwpt (limited to 'sys/linux/test/dev_iommu_hwpt') diff --git a/sys/linux/test/dev_iommu_hwpt b/sys/linux/test/dev_iommu_hwpt new file mode 100644 index 000000000..6c0289bd7 --- /dev/null +++ b/sys/linux/test/dev_iommu_hwpt @@ -0,0 +1,12 @@ +r0 = openat$iommufd(0xffffffffffffff9c, &AUTO='/dev/iommu\x00', 0x0, 0x0) +ioctl$IOMMU_IOAS_ALLOC(r0, 0x3b81, &AUTO={0xc, 0x0, 0x0}) +ioctl$IOMMU_TEST_OP_MOCK_DOMAIN(r0, 0x3ba0, &AUTO={0x48, 0x2, r1, 0x0, 0x0, 0x0, 0x0}) +ioctl$IOMMU_HWPT_ALLOC$NONE(r0, 0x3b89, &AUTO={0x28, 0x1, r2, r1, 0x0, 0x0, 0x0, 0x0, &AUTO=''}) +ioctl$IOMMU_HWPT_ALLOC$TEST(r0, 0x3b89, &AUTO={0x28, 0, r2, r3, 0x0, 0x0, 0xdead, 0x4, &AUTO={0xbadbeef}}) +ioctl$IOMMU_HWPT_INVALIDATE$TEST(r0, 0x3b8d, &AUTO={0x20, r5, &AUTO=[{0x0, 0x0}], 0xdeadbeef, 0x8, 0x1, 0x0}) +ioctl$IOMMU_DESTROY$hwpt(r0, 0x3b80, &AUTO={0x8, r5}) +ioctl$IOMMU_DESTROY$hwpt(r0, 0x3b80, &AUTO={0x8, r3}) +ioctl$IOMMU_GET_HW_INFO(r0, 0x3b8a, &AUTO={0x24, 0x0, r2, 0x1c, &AUTO='LLLLLLLLLLLLLLLLLLLLLLLLLLLL', 0x0, 0x0, 0x0}) +ioctl$IOMMU_DESTROY$stdev(r0, 0x3b80, &AUTO={0x8, r4}) +ioctl$IOMMU_DESTROY$ioas(r0, 0x3b80, &AUTO={0x8, r1}) +close(r0) \ No newline at end of file -- cgit mrf-deployment