KVM: PPC: Graciously fail broken LE hypercalls
authorAlexander Graf <agraf@suse.de>
Tue, 13 May 2014 15:05:51 +0000 (17:05 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 30 May 2014 12:26:26 +0000 (14:26 +0200)
There are LE Linux guests out there that don't handle hypercalls correctly.
Instead of interpreting the instruction stream from device tree as big endian
they assume it's a little endian instruction stream and fail.

When we see an illegal instruction from such a byte reversed instruction stream,
bail out graciously and just declare every hcall as error.

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

Simple merge