]> git.baikalelectronics.ru Git - kernel.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)
commit1ac2fb3cb7a56f4171e43b8b0f3c0636bc9518d5
tree119f57c9c339e3f04611e63033c552299420ddaa
parente04d582db7063c62c81ea8333b22ff8cab486b8e
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