KVM: arm/arm64: Move ioremap calls to create_hyp_io_mappings
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 4 Dec 2017 16:26:09 +0000 (16:26 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 19 Mar 2018 13:03:47 +0000 (13:03 +0000)
commit807a378425d27d377fdf181d1dba91539bac9294
tree9e1bfd8078179d043c853f8fd1e7a2850cc77bd9
parentb4ef04995d33a1ecfec3bdfb7776c1ac36dbe87d
KVM: arm/arm64: Move ioremap calls to create_hyp_io_mappings

Both HYP io mappings call ioremap, followed by create_hyp_io_mappings.
Let's move the ioremap call into create_hyp_io_mappings itself, which
simplifies the code a bit and allows for further refactoring.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Acked-by: Catalin Marinas <catalin.marinas@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
virt/kvm/arm/vgic/vgic-v2.c