]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit93ef9b2d265e31e5c07e8a65199aee9108b62ce3
treefda8f02af6f84242bbbedaa5a99185fdc05055e5
parented9c39b8f464128074d86ec4efbccda524ca3fb0
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