]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Stop clobbering x0 for HVC_SOFT_RESTART
authorAndrew Scull <ascull@google.com>
Mon, 6 Jul 2020 09:52:59 +0000 (10:52 +0100)
committerMarc Zyngier <maz@kernel.org>
Mon, 6 Jul 2020 10:47:02 +0000 (11:47 +0100)
commita79ddd88179647c670ac53775d5bba109ca975a7
tree93be99720bd75cc669b93555425d9ce4a5ab049c
parent7588eb9c3d6fcc8088210f570f2ee6399872b21e
KVM: arm64: Stop clobbering x0 for HVC_SOFT_RESTART

HVC_SOFT_RESTART is given values for x0-2 that it should installed
before exiting to the new address so should not set x0 to stub HVC
success or failure code.

Fixes: 93ef9b2d265e3 ("arm64: hyp-stub: Zero x0 on successful stub handling")
Cc: stable@vger.kernel.org
Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200706095259.1338221-1-ascull@google.com
arch/arm64/kvm/hyp-init.S