summaryrefslogtreecommitdiffstats
path: root/drivers/iommu/iommufd/iommufd_private.h
diff options
context:
space:
mode:
authorJason Gunthorpe <jgg@nvidia.com>2023-02-03 20:45:57 +0100
committerJason Gunthorpe <jgg@nvidia.com>2023-02-03 20:55:49 +0100
commitbed9e516f1183faa0e484479701cc669efd9049a (patch)
tree530effa39d2ff59766340cd7d8628cf1acb7164e /drivers/iommu/iommufd/iommufd_private.h
parentMerge branch 'iommu-memory-accounting' of ssh://gitolite.kernel.org/pub/scm/l... (diff)
parentvfio: Support VFIO_NOIOMMU with iommufd (diff)
downloadlinux-bed9e516f1183faa0e484479701cc669efd9049a.tar.xz
linux-bed9e516f1183faa0e484479701cc669efd9049a.zip
Merge branch 'vfio-no-iommu' into iommufd.git for-next
Shared branch with VFIO for the no-iommu support. Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'drivers/iommu/iommufd/iommufd_private.h')
-rw-r--r--drivers/iommu/iommufd/iommufd_private.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/iommu/iommufd/iommufd_private.h b/drivers/iommu/iommufd/iommufd_private.h
index 222e86591f8a..9d7f71510ca1 100644
--- a/drivers/iommu/iommufd/iommufd_private.h
+++ b/drivers/iommu/iommufd/iommufd_private.h
@@ -18,6 +18,8 @@ struct iommufd_ctx {
struct xarray objects;
u8 account_mode;
+ /* Compatibility with VFIO no iommu */
+ u8 no_iommu_mode;
struct iommufd_ioas *vfio_ioas;
};