]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
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)
commitb59d9d26becb8b32596f2eed6ce5a81d61f4f513
tree119f57c9c339e3f04611e63033c552299420ddaa
parent1692aa3faa5dff40eaa8ba8fb58aad9a91cac640
KVM: PPC: Book3S PR: PAPR: Access RTAS in big endian

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