diff options
author | 2025-02-03 21:00:54 -0800 | |
---|---|---|
committer | 2025-02-11 14:21:03 -0400 | |
commit | fb21b1568adaa76af7a8c853f37c60fba8b28661 (patch) | |
tree | 0d19d76218c2b46693e8c4bc88f0703351cd8ddf /scripts/gdb/linux/utils.py | |
parent | Linux 6.14-rc2 (diff) | |
download | wireguard-linux-fb21b1568adaa76af7a8c853f37c60fba8b28661.tar.xz wireguard-linux-fb21b1568adaa76af7a8c853f37c60fba8b28661.zip |
iommufd: Make attach_handle generic than fault specific
"attach_handle" was added exclusively for the iommufd_fault_iopf_handler()
used by IOPF/PRI use cases. Now, both the MSI and PASID series require to
reuse the attach_handle for non-fault cases.
Add a set of new attach/detach/replace helpers that does the attach_handle
allocation/releasing/replacement in the common path and also handles those
fault specific routines such as iopf enabling/disabling and auto response.
This covers both non-fault and fault cases in a clean way, replacing those
inline helpers in the header. The following patch will clean up those old
helpers in the fault.c file.
Link: https://patch.msgid.link/r/32687df01c02291d89986a9fca897bbbe2b10987.1738645017.git.nicolinc@nvidia.com
Signed-off-by: Nicolin Chen <nicolinc@nvidia.com>
Reviewed-by: Yi Liu <yi.l.liu@intel.com>
Signed-off-by: Jason Gunthorpe <jgg@nvidia.com>
Diffstat (limited to 'scripts/gdb/linux/utils.py')
0 files changed, 0 insertions, 0 deletions