From 1fad370b9eb9693736d6b5c5d6f0c92f28528c63 Mon Sep 17 00:00:00 2001 From: Vincent Donnefort Date: Thu, 6 Mar 2025 16:51:58 +0000 Subject: [PATCH] ANDROID: KVM: arm64: iommu: Do not remap on iommu_atomic_pool reclaim The atomic_pool can only allocate cacheable memory. There's no need to waste time doing a remap on the reclaim path. Bug: 357781595 Bug: 384432312 Change-Id: Ifa10eec52c2029af9330e6b1a04b8a0ae80a6c28 Signed-off-by: Vincent Donnefort --- arch/arm64/kvm/hyp/nvhe/iommu/iommu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm64/kvm/hyp/nvhe/iommu/iommu.c b/arch/arm64/kvm/hyp/nvhe/iommu/iommu.c index 2b9d9ace4b36..8d54af61ab5a 100644 --- a/arch/arm64/kvm/hyp/nvhe/iommu/iommu.c +++ b/arch/arm64/kvm/hyp/nvhe/iommu/iommu.c @@ -178,7 +178,7 @@ void *kvm_iommu_donate_pages_atomic(u8 order) void kvm_iommu_reclaim_pages_atomic(void *p, u8 order) { - __kvm_iommu_reclaim_pages(&iommu_atomic_pool, p, order); + hyp_put_page(&iommu_atomic_pool, p); } static struct kvm_hyp_iommu_domain *