Commit 776d0a76 authored by Will Deacon's avatar Will Deacon Committed by Pindar Yang
Browse files

ANDROID: KVM: arm64: Move addr_is_allowed_memory() check into host callback



Since host stage-2 mappings are created lazily, we cannot rely on the
pte in order to recover the target physical address when checking a
host-initiated memory transition.

Instead, move the addr_is_allowed_memory() check into the host callback
function where it is passed the physical address directly from the
walker.

Bug: 279739439
Signed-off-by: default avatarWill Deacon <willdeacon@google.com>
Change-Id: I84bdc43eded79f1f5e5a489dbc0874604491e5c8
Bug: 284271521
Signed-off-by: default avatarPindar Yang <pindaryang@google.com>
(cherry picked from commit fa41464b)
parent c0833300
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment