]> 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)
commit3c643cc4fa0577fad2a48465350f861e37f8527d
treee9d3807282dab044e0c6c3cfcfed13687cf13991
parentcabad4b9d7cf08ef9633f673c081a5acabf1c7ba
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