OSDN Git Service

KVM: arm64: Enable retrieving protections attributes of PTEs
authorQuentin Perret <qperret@google.com>
Mon, 9 Aug 2021 15:24:43 +0000 (16:24 +0100)
committerMarc Zyngier <maz@kernel.org>
Wed, 11 Aug 2021 10:39:51 +0000 (11:39 +0100)
commit9024b3d0069ab4b8ef70cf55f0ee09e61f3a0747
tree9fa92cf2a5dff6e06886716591b8953b8005907c
parente009dce1292c37cf8ee7c33e0887ad3c642f980f
KVM: arm64: Enable retrieving protections attributes of PTEs

Introduce helper functions in the KVM stage-2 and stage-1 page-table
manipulation library allowing to retrieve the enum kvm_pgtable_prot of a
PTE. This will be useful to implement custom walkers outside of
pgtable.c.

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-17-qperret@google.com
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/pgtable.c