KVM: arm/arm64: Consolidate page-table accessors
commit88dc25e8ea7c968bbf76d033431e2d7e1418bcd7
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 25 May 2018 11:23:11 +0000 (25 12:23 +0100)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 9 Jul 2018 10:37:42 +0000 (9 11:37 +0100)
tree78581102d167da491f21f0110666a050d696b473
parent2f6ea23f63cca99cd514c221f075c986b57c927e
KVM: arm/arm64: Consolidate page-table accessors

The arm and arm64 KVM page tables accessors are pointlessly different
between the two architectures, and likely both wrong one way or another:
arm64 lacks a dsb(), and arm doesn't use WRITE_ONCE.

Let's unify them.

Acked-by: Mark Rutland <mark.rutland@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm/include/asm/kvm_mmu.h
arch/arm64/include/asm/kvm_mmu.h
virt/kvm/arm/mmu.c