]> 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)
commit7a714e3b298bbf9ed193ac13623559bf07eec558
tree22c62ee8063d8ac7a1f2c34e34abee5142e9ebfe
parentaecb579748f9c4f98e8ee4c211849f0cdca1e840
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