]> 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)
commit9fc95af3c6a2434ea89e767dd9fd572196e4a824
treedfe0f4cfd2860af11ac6825ba16b082e87a6031e
parentb50fd8267886e685cf98866ef90bef4e605b7999
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