KVM: PPC: Book3S PR: PAPR: Access RTAS in big endian
authorAlexander Graf <agraf@suse.de>
Thu, 24 Apr 2014 11:10:33 +0000 (13:10 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 30 May 2014 12:26:20 +0000 (14:26 +0200)
When the guest does an RTAS hypercall it keeps all RTAS variables inside a
big endian data structure.

To make sure we don't have to bother about endianness inside the actual RTAS
handlers, let's just convert the whole structure to host endian before we
call our RTAS handlers and back to big endian when we return to the guest.

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

Simple merge