arm64: KVM: Allow for direct call of HYP functions when using VHE
authorMarc Zyngier <marc.zyngier@arm.com>
Sat, 5 Jan 2019 15:57:56 +0000 (15:57 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Feb 2019 21:05:24 +0000 (21:05 +0000)
commit18fc7bf8e041272f74a3237b99261d59c3ff0388
tree687de6d22df447a6495f6f201e8979b0d6209e50
parent7aa8d14641651a61a0b8892314a0bcfaceebe158
arm64: KVM: Allow for direct call of HYP functions when using VHE

When running VHE, there is no need to jump via some stub to perform
a "HYP" function call, as there is a single address space.

Let's thus change kvm_call_hyp() and co to perform a direct call
in this case. Although this results in a bit of code expansion,
it allows the compiler to check for type compatibility, something
that we are missing so far.

Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
Acked-by: Christoffer Dall <christoffer.dall@arm.com>
Signed-off-by: Christoffer Dall <christoffer.dall@arm.com>
arch/arm64/include/asm/kvm_host.h