]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: Simplify __kvm_hyp_init HVC detection
authorAndrew Scull <ascull@google.com>
Mon, 25 Jan 2021 14:54:14 +0000 (14:54 +0000)
committerMarc Zyngier <maz@kernel.org>
Mon, 25 Jan 2021 16:16:16 +0000 (16:16 +0000)
commit31fd972307229208cb2366b838801316845f3f41
treec881f8e393cc3f46fd51be403875328b2d9c8197
parent9fb686b91f85f6106279ccd602ad0555eb2734b1
KVM: arm64: Simplify __kvm_hyp_init HVC detection

The arguments for __do_hyp_init are now passed with a pointer to a
struct which means there are scratch registers available for use. Thanks
to this, we no longer need to use clever, but hard to read, tricks that
avoid the need for scratch registers when checking for the
__kvm_hyp_init HVC.

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-2-ascull@google.com
arch/arm64/kvm/hyp/nvhe/hyp-init.S