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:
parent
a701418f2f
commit
cf2d193d9b
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue