]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Add compatibility aliases
authorMarc Zyngier <marc.zyngier@arm.com>
Sun, 25 Oct 2015 13:58:00 +0000 (13:58 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Mon, 14 Dec 2015 11:30:42 +0000 (11:30 +0000)
commit7c9d0d59e4fa540e8e82dd170cda5f2d20235636
treedfe0f4cfd2860af11ac6825ba16b082e87a6031e
parent94015221fba259271557eeb26d6e8796e56a2a1c
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>
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