summaryrefslogtreecommitdiff
path: root/arch/arm64/kvm/hyp/debug-sr.c
diff options
context:
space:
mode:
authorMarc Zyngier <marc.zyngier@arm.com>2015-10-25 16:58:00 +0300
committerMarc Zyngier <marc.zyngier@arm.com>2015-12-14 14:30:42 +0300
commit044ac37d1281fc7b59d5dce4fe979a99369e95f2 (patch)
treedfe0f4cfd2860af11ac6825ba16b082e87a6031e /arch/arm64/kvm/hyp/debug-sr.c
parent53fd5b6487e4438049a5da5e36dfb8edcf1fd789 (diff)
downloadlinux-044ac37d1281fc7b59d5dce4fe979a99369e95f2.tar.xz
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>
Diffstat (limited to 'arch/arm64/kvm/hyp/debug-sr.c')
-rw-r--r--arch/arm64/kvm/hyp/debug-sr.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/arch/arm64/kvm/hyp/debug-sr.c b/arch/arm64/kvm/hyp/debug-sr.c
index 7848322deed6..d071f4591a6c 100644
--- a/arch/arm64/kvm/hyp/debug-sr.c
+++ b/arch/arm64/kvm/hyp/debug-sr.c
@@ -135,3 +135,6 @@ u32 __hyp_text __debug_read_mdcr_el2(void)
{
return read_sysreg(mdcr_el2);
}
+
+__alias(__debug_read_mdcr_el2)
+u32 __weak __kvm_get_mdcr_el2(void);