]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commit
PPC: ePAPR: Fix hypercall on LE guest
authorAlexander Graf <agraf@suse.de>
Thu, 15 May 2014 12:35:19 +0000 (14:35 +0200)
committerScott Wood <scottwood@freescale.com>
Thu, 22 May 2014 23:08:33 +0000 (18:08 -0500)
commit8cb59788b342903f2912ecef0df4aaadd12e5843
treed63565a385f7a8fae62845b4182768169f3a6208
parent1be62c6cced607ee870e45512d021f0d6bd1a6c7
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>
Signed-off-by: Scott Wood <scottwood@freescale.com>
arch/powerpc/kernel/epapr_paravirt.c