arm64: KVM: VHE: Patch out kern_hyp_va
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 29 Jan 2015 13:50:34 +0000 (13:50 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 29 Feb 2016 18:34:16 +0000 (18:34 +0000)
commitcedbb8b78c4f09f0d4519d5d35519b64487f1f0a
tree62654ba40eab752b351f41a4268dae5fe2b0d75a
parentb81125c791a2958cc60ae968fc1cdea82b7cd3b0
arm64: KVM: VHE: Patch out kern_hyp_va

The kern_hyp_va macro is pretty meaninless with VHE, as there is
only one mapping - the kernel one.

In order to keep the code readable and efficient, use runtime
patching to replace the 'and' instruction used to compute the VA
with a 'nop'.

Reviewed-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
arch/arm64/include/asm/kvm_mmu.h
arch/arm64/kvm/hyp/hyp.h