KVM: arm64: Move S1PTW S2 fault logic out of io_mem_abort()
authorWill Deacon <will@kernel.org>
Wed, 29 Jul 2020 10:28:21 +0000 (11:28 +0100)
committerMarc Zyngier <maz@kernel.org>
Thu, 30 Jul 2020 15:02:37 +0000 (16:02 +0100)
commit022c8328dc8021248047b373b9f67790641b8f2d
treeab029c9e5315e378084d49e8391b1ba64a5c7e7c
parent54dc0d2404dd7aa0dd4e4f388a65622b68c6eaff
KVM: arm64: Move S1PTW S2 fault logic out of io_mem_abort()

To allow for re-injection of stage-2 faults on stage-1 page-table walks
due to either a missing or read-only memslot, move the triage logic out
of io_mem_abort() and into kvm_handle_guest_abort(), where these aborts
can be handled before anything else.

Signed-off-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Quentin Perret <qperret@google.com>
Link: https://lore.kernel.org/r/20200729102821.23392-5-will@kernel.org
arch/arm64/kvm/mmio.c
arch/arm64/kvm/mmu.c