]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitaace91b1b9a587ef5c532a890a98d79f849d6ad7
treef33661f1ac1da3f66017df3498406d07e10e31c0
parent1b5998adeb9e93b91552f692d1b5846fa36976dc
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