Commit 8e7a03dc authored by Mostafa Saleh's avatar Mostafa Saleh
Browse files

ANDROID: iommu/pkvm-iommu: Fix locking in maple tree usage



There are some problems with the maple tree usage at the moment:
- pviommu_domain_find() uses mas_find() which must be locked.
- pviommu_domain_remove_map() had a similar problem, but also it explicitly
  calls find and erase/insert non-atomically, so convert all of those to the
  unlocked version and use the tree lock on them.
- All allocations from unmap must be atomic

Bug: 357781595
Bug: 348382247
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
Reported-by: default avatarAashish Sharma <shraash@google.com>
Change-Id: Ida8cfcfe3dc34ba7574d06eb1970602ab160173c
parent e6f1cbba
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment