arm64: KVM: Add compatibility aliases
authorMarc Zyngier <marc.zyngier@arm.com>
Sun, 25 Oct 2015 13:58:00 +0000 (13:58 +0000)
committerAlex Shi <alex.shi@linaro.org>
Wed, 9 Nov 2016 14:15:46 +0000 (22:15 +0800)
commiteccbe96e1fc0d89088bfac7ddf762f108e2ce94c
treed6a32ee8d678c6577d609c108f7feafe8dbad7bf
parent83f0b0bce9df6515279c43f98986e58d9838b933
arm64: KVM: Add compatibility aliases

So far, we've implemented the new world switch with a completely
different namespace, so that we could have both implementation
compiled in.

Let's take things one step further by adding weak aliases that
have the same names as the original implementation. The weak
attributes allows the new implementation to be overriden by the
old one, and everything still work.

At a later point, we'll be able to simply drop the old code, and
everything will hopefully keep working, thanks to the aliases we
have just added. This also saves us repainting all the callers.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
(cherry picked from commit 044ac37d1281fc7b59d5dce4fe979a99369e95f2)
Signed-off-by: Alex Shi <alex.shi@linaro.org>
arch/arm64/kvm/hyp/debug-sr.c
arch/arm64/kvm/hyp/hyp-entry.S
arch/arm64/kvm/hyp/switch.c
arch/arm64/kvm/hyp/tlb.c
arch/arm64/kvm/hyp/vgic-v3-sr.c