]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitd8731e0ae85d353b674fdb37688013c898916f5d
treee9d3807282dab044e0c6c3cfcfed13687cf13991
parent10e3d17ab2252071735a3cd70542112faae91fc8
KVM: PPC: Graciously fail broken LE hypercalls

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