]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: arm64: nVHE: Fix pointers during SMCCC convertion
authorAndrew Scull <ascull@google.com>
Tue, 15 Sep 2020 10:46:43 +0000 (11:46 +0100)
committerMarc Zyngier <maz@kernel.org>
Tue, 15 Sep 2020 17:39:04 +0000 (18:39 +0100)
commit6620819fb8d95276997fdfdb050bd0bd5297ec59
tree22c62ee8063d8ac7a1f2c34e34abee5142e9ebfe
parentd1e31508e9c9b4f8e7a0ebbcdf436b9260790994
KVM: arm64: nVHE: Fix pointers during SMCCC convertion

The host need not concern itself with the pointer differences for the
hyp interfaces that are shared between VHE and nVHE so leave it to the
hyp to handle.

As the SMCCC function IDs are converted into function calls, it is a
suitable place to also convert any pointer arguments into hyp pointers.
This, additionally, eases the reuse of the handlers in different
contexts.

Signed-off-by: Andrew Scull <ascull@google.com>
Signed-off-by: Marc Zyngier <maz@kernel.org>
Link: https://lore.kernel.org/r/20200915104643.2543892-20-ascull@google.com
arch/arm64/kvm/hyp/nvhe/hyp-main.c
arch/arm64/kvm/hyp/nvhe/switch.c
arch/arm64/kvm/hyp/nvhe/tlb.c
arch/arm64/kvm/vgic/vgic-v3.c