KVM: arm64: Introduce addr_is_memory()
authorQuentin Perret <qperret@google.com>
Mon, 9 Aug 2021 15:24:42 +0000 (16:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Aug 2021 10:39:51 +0000 (11:39 +0100)
commite009dce1292c37cf8ee7c33e0887ad3c642f980f
treec799a1243da2a03e1160c6d3c37038efc096fba9
parent2d77e238badb022adb364332b7d6a1d627f77145
KVM: arm64: Introduce addr_is_memory()

Introduce a helper usable in nVHE protected mode to check whether a
physical address is in a RAM region or not.

Signed-off-by: Quentin Perret <qperret@google.com>
Reviewed-by: Fuad Tabba <tabba@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210809152448.1810400-16-qperret@google.com
arch/arm64/kvm/hyp/include/nvhe/mem_protect.h
arch/arm64/kvm/hyp/nvhe/mem_protect.c