Commit 2ea2a15f authored by Mostafa Saleh's avatar Mostafa Saleh Committed by Carlos Llamas
Browse files

ANDROID: KVM: iommu: Abstract hypercalls



At the moment, the SMMUv3 driver calls KVM IOMMU hypercalls directly,
that is not ideal as:
- It can be built as a module, which means the HVCs become part of KMI
- It duplicates some logic, for example, when mapping in the IOMMU,
  we want to keep calling the HVC and topping up the allocator in case
  of no memory, which is a common logic

So, move those outside of the driver in the KVM IOMMU kernel part.

Bug: 357781595
Change-Id: Ica2b682efe62429841642d4a947ac315770f7bb3
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
Signed-off-by: default avatarCarlos Llamas <cmllamas@google.com>
parent 37dc91cf
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment