KVM: arm64: Reject shared table walks in the hyp code
authorOliver Upton <oliver.upton@linux.dev>
Fri, 18 Nov 2022 18:22:22 +0000 (18:22 +0000)
committerMarc Zyngier <maz@kernel.org>
Tue, 22 Nov 2022 13:05:53 +0000 (13:05 +0000)
commit5e806c5812e8012a83496cf96bdba266b3aec428
tree5809e114c7d67e6e534fbf9c64c90a17474b4e63
parentb7833bf202e3068abb77c642a0843f696e9c8d38
KVM: arm64: Reject shared table walks in the hyp code

Exclusive table walks are the only supported table walk in the hyp, as
there is no construct like RCU available in the hypervisor code. Reject
any attempt to do a shared table walk by returning an error and allowing
the caller to clean up the mess.

Suggested-by: Will Deacon <will@kernel.org>
Signed-off-by: Oliver Upton <oliver.upton@linux.dev>
Acked-by: Will Deacon <will@kernel.org>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20221118182222.3932898-4-oliver.upton@linux.dev
arch/arm64/include/asm/kvm_pgtable.h
arch/arm64/kvm/hyp/pgtable.c