diff options
author | 2023-10-25 21:39:31 -0700 | |
---|---|---|
committer | 2023-10-26 11:15:56 -0300 | |
commit | 58d84f430dc7f737d21c60906de0f39104c89e9d (patch) | |
tree | b55f62f4161b4afd14a509ada6f7fbd397cc3e02 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | iommufd: Rename IOMMUFD_OBJ_HW_PAGETABLE to IOMMUFD_OBJ_HWPT_PAGING (diff) | |
download | wireguard-linux-58d84f430dc7f737d21c60906de0f39104c89e9d.tar.xz wireguard-linux-58d84f430dc7f737d21c60906de0f39104c89e9d.zip |
iommufd/device: Wrap IOMMUFD_OBJ_HWPT_PAGING-only configurations
Some of the configurations during the attach/replace() should only apply
to IOMMUFD_OBJ_HWPT_PAGING. Once IOMMUFD_OBJ_HWPT_NESTED gets introduced
in a following patch, keeping them unconditionally in the common routine
will not work.
Wrap all of those PAGING-only configurations together into helpers. Do a
hwpt_is_paging check whenever calling them or their fallback routines.
Link: https://lore.kernel.org/r/20231026043938.63898-4-yi.l.liu@intel.com
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Signed-off-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions