arm/arm64: KVM: PSCI: propagate caller endianness to the incoming vcpu
authorMarc Zyngier <marc.zyngier@arm.com>
Tue, 5 Nov 2013 14:12:15 +0000 (14:12 +0000)
committerChristoffer Dall <christoffer.dall@linaro.org>
Thu, 2 Oct 2014 15:18:19 +0000 (17:18 +0200)
commit53e38964402dd81c8528f3d2c6fd119c4091a390
tree605b0cb05b50e57edcb4c395f6102e811f1ed45d
parentdd8858820ec48b90c5ab5c6631f50a613deb55bc
arm/arm64: KVM: PSCI: propagate caller endianness to the incoming vcpu

When booting a vcpu using PSCI, make sure we start it with the
endianness of the caller. Otherwise, secondaries can be pretty
unhappy to execute a BE kernel in LE mode...

This conforms to PSCI spec Rev B, 5.13.3.

Acked-by: Christoffer Dall <christoffer.dall@linaro.org>
Signed-off-by: Marc Zyngier <marc.zyngier@arm.com>
(cherry picked from commit ce94fe93d566bf381c6ecbd45010d36c5f04d692)
Signed-off-by: Christoffer Dall <christoffer.dall@linaro.org>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/psci.c
arch/arm64/include/asm/kvm_emulate.h