]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: KVM: Teach some form of type-safety to kvm_call_hyp
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 11 Jan 2019 14:57:58 +0000 (14:57 +0000)
committerMarc Zyngier <marc.zyngier@arm.com>
Tue, 19 Feb 2019 21:05:34 +0000 (21:05 +0000)
commit37b53e29dd4639d9b3fbf5554c112cf6993e2e18
tree4f5076fe69453e1cc96c2ab8aad6183ba8fb9e5b
parent895cf24b9f60b3f4561fb808a43150f9bc1d5a8c
ARM: KVM: Teach some form of type-safety to kvm_call_hyp

Just like on arm64, and for the same reasons, kvm_call_hyp removes
any form of type safety when calling into HYP. But we can still
try to tell the compiler what we're trying to achieve.

Here, we can add code that would do the function call if it wasn't
guarded by an always-false predicate. Hopefully, the compiler is
dumb enough to do the type checking and clever enough to not emit
the corresponding code...

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/arm/include/asm/kvm_host.h
arch/arm/kvm/hyp/hyp-entry.S
arch/arm/kvm/interrupts.S