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)
committerMarc Zyngier <marc.zyngier@arm.com>
Thu, 7 Nov 2013 19:09:08 +0000 (19:09 +0000)
commitce94fe93d566bf381c6ecbd45010d36c5f04d692
tree964abbc8b5f43d94543a053cfaa2c7e1b3fc71f5
parent6d89d2d9b5bac9dbe40ee106ceda9307b6265234
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>
arch/arm/include/asm/kvm_emulate.h
arch/arm/kvm/psci.c
arch/arm64/include/asm/kvm_emulate.h