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: Will Deacon <willdeacon@google.com>
Change-Id: I84bdc43eded79f1f5e5a489dbc0874604491e5c8
Bug: 284271521
Signed-off-by: Pindar Yang <pindaryang@google.com>
(cherry picked from commit fa41464b3d26c041b1df4a77e5376b4a773a1380)
1 file changed