Commit c8ff6db6 authored by Mostafa Saleh's avatar Mostafa Saleh
Browse files

ANDROID: KVM: arm64: iommu: Save pgsize per cached ptr



Currently, kvm_iommu_paddr_cache is assumed to hold ptrs pointing to
the same pgsize. In the next patch this would change, so we need to
save the pgsize for each pointer.

There can be other solutions to avoid that would be either SMMUV3
specific (We know these calls come from table invalidation, so we can
eaglry unuse those) or with a similar logic to the iotlb_gather,
where when a new page size is introduced, the whole cache is flushed.

Bug: 333874255
Bug: 277989609
Bug: 278749606

Change-Id: I67026036253964e65c19b3cf029a93fde30ebed1
Signed-off-by: default avatarMostafa Saleh <smostafa@google.com>
parent 0588cb4a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment