arm64: hyp-stub: Zero x0 on successful stub handling
authorMarc Zyngier <marc.zyngier@arm.com>
Mon, 3 Apr 2017 18:38:05 +0000 (19:38 +0100)
committerChristoffer Dall <cdall@linaro.org>
Sun, 9 Apr 2017 14:49:35 +0000 (07:49 -0700)
commitaf42f20480bf13d9dbf099ccca65f3de8c44fcaf
treefda8f02af6f84242bbbedaa5a99185fdc05055e5
parent0b51c547fdb7ee05b6d65471785a1d899c8a667c
arm64: hyp-stub: Zero x0 on successful stub handling

We now return HVC_STUB_ERR when a stub hypercall fails, but we
leave whatever was in x0 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/arm64/kernel/hyp-stub.S
arch/arm64/kvm/hyp-init.S