summaryrefslogtreecommitdiff
path: root/tools/testing/selftests/vfio/lib/include
diff options
context:
space:
mode:
authorDavid Matlack <dmatlack@google.com>2025-11-26 23:17:19 +0000
committerAlex Williamson <alex@shazbot.org>2025-11-28 10:58:06 -0700
commitdd56ef239d832d9782f5ed204533824bea4548f7 (patch)
tree3504519aba93194103acb889705c167084167427 /tools/testing/selftests/vfio/lib/include
parent6282ca8585010bfb4ab658243a1665428bcfa9de (diff)
vfio: selftests: Rename struct vfio_iommu_mode to iommu_mode
Rename struct vfio_iommu_mode to struct iommu_mode since the mode can include iommufd. This also prepares for splitting out all the IOMMU code into its own structs/helpers/files which are independent from the vfio_pci_device code. No function change intended. Reviewed-by: Alex Mastro <amastro@fb.com> Tested-by: Alex Mastro <amastro@fb.com> Reviewed-by: Raghavendra Rao Ananta <rananta@google.com> Signed-off-by: David Matlack <dmatlack@google.com> Link: https://lore.kernel.org/r/20251126231733.3302983-5-dmatlack@google.com Signed-off-by: Alex Williamson <alex@shazbot.org>
Diffstat (limited to 'tools/testing/selftests/vfio/lib/include')
-rw-r--r--tools/testing/selftests/vfio/lib/include/vfio_util.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/vfio/lib/include/vfio_util.h b/tools/testing/selftests/vfio/lib/include/vfio_util.h
index 0b9a5628d23e..2f5555138d7f 100644
--- a/tools/testing/selftests/vfio/lib/include/vfio_util.h
+++ b/tools/testing/selftests/vfio/lib/include/vfio_util.h
@@ -50,7 +50,7 @@
VFIO_LOG_AND_EXIT(_fmt, ##__VA_ARGS__); \
} while (0)
-struct vfio_iommu_mode {
+struct iommu_mode {
const char *name;
const char *container_path;
unsigned long iommu_type;
@@ -166,7 +166,7 @@ struct vfio_pci_driver {
struct vfio_pci_device {
int fd;
- const struct vfio_iommu_mode *iommu_mode;
+ const struct iommu_mode *iommu_mode;
int group_fd;
int container_fd;