]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Refactor kern_hyp_va to deal with multiple offsets
authorMarc Zyngier <marc.zyngier@arm.com>
Thu, 30 Jun 2016 17:40:40 +0000 (18:40 +0100)
committerChristoffer Dall <christoffer.dall@linaro.org>
Sun, 3 Jul 2016 21:41:27 +0000 (23:41 +0200)
commit3b2a24dc1690e7f45ee98f26adc2b546ded4f58e
tree9bf9ac123d247ee0bcc9702b683031a65d21b541
parent353b66c269015f681a5b880af3bc3d9773717453
arm64: KVM: Refactor kern_hyp_va to deal with multiple offsets

As we move towards a selectable HYP VA range, it is obvious that
we don't want to test a variable to find out if we need to use
the bottom VA range, the top VA range, or use the address as is
(for VHE).

Instead, we can expand our current helper to generate the right
mask or nop with code patching. We default to using the top VA
space, with alternatives to switch to the bottom one or to nop
out the instructions.

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