mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
ANDROID: KVM: arm64: Don't recycle non-default PTEs
When recycling host stage-2 page-table pages, we currenly blindly unmap all 'non-moveable' regions. To prepare the ground for allowing the mapping of those regions with non-default attributes, let's switch to using the recently introduced kvm_pgtable_stage2_reclaim_leaf() helper which will only reclaim pages containing PTEs with default attributes. Bug: 264070847 Change-Id: I4a441a20abe84d2405efcfa403908078c10be841 Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2bad47ce33
commit
d522a07153
@@ -398,7 +398,7 @@ int host_stage2_unmap_reg_locked(phys_addr_t start, u64 size)
|
||||
|
||||
hyp_assert_lock_held(&host_mmu.lock);
|
||||
|
||||
ret = kvm_pgtable_stage2_unmap(&host_mmu.pgt, start, size);
|
||||
ret = kvm_pgtable_stage2_reclaim_leaves(&host_mmu.pgt, start, size);
|
||||
if (ret)
|
||||
return ret;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user