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:
Mostafa Saleh <smostafa@google.com>
Loading
Please sign in to comment