ANDROID: KVM: arm64: Don't recycle pages from host mem abort
We're now guaranteed by construction to not require structural changes to the host stage-2 page-table from the host memory abort path, so let's use the low-level __host_stage2_idmap() function directly instead of the higher-level wrapper that attempts page recycling when running out of memory. Bug: 264070847 Change-Id: I2db34777386931bfb3f93ea3b3e51e1e2a10ea79 Signed-off-by: Quentin Perret <qperret@google.com>
This commit is contained in:
parent
452ef5ae7b
commit
adc78128b3
1 changed files with 5 additions and 1 deletions
|
|
@ -799,7 +799,11 @@ static int host_stage2_idmap(struct kvm_vcpu_fault_info *fault, u64 addr)
|
|||
if (ret)
|
||||
return ret;
|
||||
|
||||
return host_stage2_idmap_locked(range.start, range.end - range.start, prot, false);
|
||||
/*
|
||||
* We're guaranteed not to require memory allocation by construction,
|
||||
* no need to bother even trying to recycle pages.
|
||||
*/
|
||||
return __host_stage2_idmap(range.start, range.end, prot, false);
|
||||
}
|
||||
|
||||
static void (*illegal_abt_notifier)(struct kvm_cpu_context *host_ctxt);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue