KVM: arm64: Don't clobber x4 in __do_hyp_init
authorAndrew Scull <ascull@google.com>
Mon, 25 Jan 2021 14:54:15 +0000 (14:54 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 25 Jan 2021 15:50:35 +0000 (15:50 +0000)
commite500b805c39daff2670494fff94909d7e3d094d9
tree5713a620c16136faf4b202c54475b7b705b12f07
parent139bc8a6146d92822c866cf2fd410159c56b3648
KVM: arm64: Don't clobber x4 in __do_hyp_init

arm_smccc_1_1_hvc() only adds write contraints for x0-3 in the inline
assembly for the HVC instruction so make sure those are the only
registers that change when __do_hyp_init is called.

Tested-by: David Brazdil <dbrazdil@google.com>
Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20210125145415.122439-3-ascull@google.com
arch/arm64/kvm/hyp/nvhe/hyp-init.S