Commit 9a249651 authored by Mostafa Saleh's avatar Mostafa Saleh Committed by Carlos Llamas
Browse files

ANDROID: KVM: arm64: pviommu: Add map/unmap() HVC ops



Add map_pages HVC ops  which calls the IOMMU map function, but before that:

- Get the physical address from the IPA and fault to map it if needed.
- If no memory in the vcpu memcache, return false and repeat the HVC,
  this will be handled in EL1 to fill the memcache.

unmap is more straight forward.

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