diff options
author | Lu Baolu <baolu.lu@linux.intel.com> | 2025-04-18 16:01:26 +0800 |
---|---|---|
committer | Joerg Roedel <jroedel@suse.de> | 2025-04-28 13:04:33 +0200 |
commit | c2fa4d4cceb865e1235cf5e0825d488e6b622536 (patch) | |
tree | bfc789ca57782323feb4a12f0683f834c7b5ea7a /scripts/lib/kdoc/kdoc_files.py | |
parent | 17fce9d2336d952b95474248303e5e7d9777f2e0 (diff) |
iommufd/selftest: Put iopf enablement in domain attach path
Update iopf enablement in the iommufd mock device driver to use the new
method, similar to the arm-smmu-v3 driver. Enable iopf support when any
domain with an iopf_handler is attached, and disable it when the domain
is removed.
Add a refcount in the mock device state structure to keep track of the
number of domains set to the device and PASIDs that require iopf.
Signed-off-by: Lu Baolu <baolu.lu@linux.intel.com>
Reviewed-by: Kevin Tian <kevin.tian@intel.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Reviewed-by: Nicolin Chen <nicolinc@nvidia.com>
Tested-by: Zhangfei Gao <zhangfei.gao@linaro.org>
Link: https://lore.kernel.org/r/20250418080130.1844424-5-baolu.lu@linux.intel.com
Signed-off-by: Joerg Roedel <jroedel@suse.de>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_files.py')
0 files changed, 0 insertions, 0 deletions