KVM: arm64: Handle access faults behind the read lock
authorOliver Upton <oliver.upton@linux.dev>
Fri, 2 Dec 2022 18:51:55 +0000 (18:51 +0000)
committerOliver Upton <oliver.upton@linux.dev>
Thu, 12 Jan 2023 21:09:20 +0000 (21:09 +0000)
commitfc61f554e6947edd21cd84fb814f8418349a3569
treec42d6a473a8ba916d293a007722a601dd7dd6f77
parent7d29a2407df612b0903cee94fc3469d7335b442c
KVM: arm64: Handle access faults behind the read lock

As the underlying software walkers are able to traverse and update
stage-2 in parallel there is no need to serialize access faults.

Only take the read lock when handling an access fault.

Link: https://lore.kernel.org/r/20221202185156.696189-6-oliver.upton@linux.dev
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
arch/arm64/kvm/hyp/pgtable.c
arch/arm64/kvm/mmu.c