KVM: arm64: Convert user_mem_abort() to generic page-table API
authorWill Deacon <will@kernel.org>
Fri, 11 Sep 2020 13:25:25 +0000 (14:25 +0100)
committerMarc Zyngier <maz@kernel.org>
Fri, 11 Sep 2020 14:51:15 +0000 (15:51 +0100)
commit6f745f1bb5bf2914be2344b0dd7781d0528b3e42
treef33661f1ac1da3f66017df3498406d07e10e31c0
parentadcd4e23291e67575be0c8b08eed04fbe7fd9e77
KVM: arm64: Convert user_mem_abort() to generic page-table API

Convert user_mem_abort() to call kvm_pgtable_stage2_relax_perms() when
handling a stage-2 permission fault and kvm_pgtable_stage2_map() when
handling a stage-2 translation fault, rather than walking the page-table
manually.

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