On Mon, Jul 24, 2023 at 03:59:36AM -0700, Yi Liu wrote: > diff --git a/tools/testing/selftests/iommu/iommufd_utils.h b/tools/testing/selftests/iommu/iommufd_utils.h > index 70353e68e599..f13df84f6b42 100644 > --- a/tools/testing/selftests/iommu/iommufd_utils.h > +++ b/tools/testing/selftests/iommu/iommufd_utils.h > @@ -348,3 +348,29 @@ static void teardown_iommufd(int fd, struct __test_metadata *_metadata) > }) > > #endif > + > +static int _test_cmd_get_hw_info(int fd, __u32 device_id, > + __u32 data_len, void *data) void * data,size_t data_len Jason