]> git.baikalelectronics.ru Git - kernel.git/commit
arm64: KVM: Turn kvm_ksym_ref into a NOP on VHE
authorMarc Zyngier <marc.zyngier@arm.com>
Fri, 18 Mar 2016 17:25:59 +0000 (17:25 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Mon, 21 Mar 2016 09:47:18 +0000 (10:47 +0100)
commit696c5ab3afb60679277bbf7ff83b41f00599a5af
tree5ba99f0b77f0f046927e685733e758c51a827ec4
parent6f0ab4ba9b884288b08a7b6698d64c26ff485cca
arm64: KVM: Turn kvm_ksym_ref into a NOP on VHE

When running with VHE, there is no need to translate kernel pointers
to the EL2 memory space, since we're already there (and we have a much
saner memory map to start with).

Unfortunately, kvm_ksym_ref is getting in the way, and the first
call into the "hypervisor" section is going to end up in fireworks,
since we're now branching into nowhereland. Meh.

A potential solution is to test if VHE is engaged or not, and only
perform the translation in the negative case. With this in place,
VHE is able to run again.

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