KVM: arm64: Convert write-protect operation to generic page-table API
authorQuentin Perret <qperret@google.com>
Fri, 11 Sep 2020 13:25:21 +0000 (14:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Sep 2020 14:51:14 +0000 (15:51 +0100)
commitcc38d61cace392a5f064f2981ce6009bb158de21
tree9fd55836f511c308bebd86df81515aa89c4b8454
parent73d49df2c3e7cad5bf64c92ec03ce9e3823898b9
KVM: arm64: Convert write-protect operation to generic page-table API

Convert stage2_wp_range() to call the kvm_pgtable_stage2_wrprotect()
function of the generic page-table code instead of walking the page-table
directly.

Signed-off-by: Quentin Perret <qperret@google.com>
Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Reviewed-by: Gavin Shan <gshan@redhat.com>
Cc: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200911132529.19844-14-will@kernel.org
arch/arm64/kvm/mmu.c