ARM: hyp-stub: Zero r0 on successful stub handling
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:38:06 +0000 (19:38 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:36 +0000 (07:49 -0700)
commitd9118c87d21ee799058a55eeae84d392ae887c91
tree6e8afb42ef2aaec6102052e87cc76142bb065266
parentaf42f20480bf13d9dbf099ccca65f3de8c44fcaf
ARM: hyp-stub: Zero r0 on successful stub handling

We now return HVC_STUB_ERR when a stub hypercall fails, but we
leave whatever was in r0 on success. Zeroing it on return seems
like a good idea.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Signed-off-by: Christoffer Dall <cdall@linaro.org>
arch/arm/kernel/hyp-stub.S
arch/arm/kvm/init.S