diff options
author | Suravee Suthikulpanit <[email protected]> | 2023-09-21 09:21:40 +0000 |
---|---|---|
committer | Joerg Roedel <[email protected]> | 2023-09-25 12:39:02 +0200 |
commit | 45677ab1e5ca65622b35cc231c5d31c699cfaefe (patch) | |
tree | e0eaa1c9bc6f0e94b8760f515d3b514cec97a8e3 /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace | |
parent | 4c721d6a085ca7baa4289bcf786c71684b2ef281 (diff) |
iommu/amd: Miscellaneous clean up when free domain
* Use the protection_domain_free() helper function to free domain.
The function has been modified to also free memory used for the v1 and v2
page tables. Also clear gcr3 table in v2 page table free path.
* Refactor code into cleanup_domain() for reusability. Change BUG_ON to
WARN_ON in cleanup path.
* Protection domain dev_cnt should be read when the domain is locked.
Signed-off-by: Suravee Suthikulpanit <[email protected]>
Co-developed-by: Vasant Hegde <[email protected]>
Signed-off-by: Vasant Hegde <[email protected]>
Reviewed-by: Jason Gunthorpe <[email protected]>
Reviewed-by: Jerry Snitselaar <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Joerg Roedel <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace')
0 files changed, 0 insertions, 0 deletions