]> 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)
commit10e3d17ab2252071735a3cd70542112faae91fc8
tree62ff55b43aa46303c6f398e8947bfeb3399c47ca
parente8187530acfd4573859c1e2e62dd97d09980861e
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