]> git.baikalelectronics.ru Git - kernel.git/commit
PPC: ePAPR: Fix hypercall on LE guest
authorAlexander Graf <agraf@suse.de>
Tue, 13 May 2014 14:44:09 +0000 (16:44 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 30 May 2014 12:26:26 +0000 (14:26 +0200)
commitcabad4b9d7cf08ef9633f673c081a5acabf1c7ba
tree62ff55b43aa46303c6f398e8947bfeb3399c47ca
parent2d90a666a2efb84a97dc01a5bb009f188214b510
PPC: ePAPR: Fix hypercall on LE guest

We get an array of instructions from the hypervisor via device tree that
we write into a buffer that gets executed whenever we want to make an
ePAPR compliant hypercall.

However, the hypervisor passes us these instructions in BE order which
we have to manually convert to LE when we want to run them in LE mode.

With this fixup in place, I can successfully run LE kernels with KVM
PV enabled on PR KVM.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/kernel/epapr_paravirt.c