OSDN Git Service

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)
commita071261d93184f43b7dede7516b6c449c4ed5770
tree22c62ee8063d8ac7a1f2c34e34abee5142e9ebfe
parent04e4caa8d355d19fd7d26734bd2b9e3b563bb22a
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