mirror of
https://github.com/hardkernel/linux.git
synced 2026-03-25 20:10:23 +09:00
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:
committed by
Greg Kroah-Hartman
parent
aa4b272b34
commit
9debaf482d
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user