]> 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)
commit8b7a4a014b3b8ec3b356b396ff71ff3792502f56
tree119f57c9c339e3f04611e63033c552299420ddaa
parent0c1db7ecd240f79a1985dc95b3b9571ae9b70090
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