]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
KVM: PPC: Book3S HV: Make HTAB code LE host aware
authorAlexander Graf <agraf@suse.de>
Wed, 11 Jun 2014 08:16:06 +0000 (10:16 +0200)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 13:22:22 +0000 (15:22 +0200)
commit6f22bd3265fb542acb2697026b953ec07298242d
tree857f31bd9f100282b0e833b26a5d45bbc23a3a5d
parent8f6822c4b9fac6e47414d2f1e11dbabda9bc2163
KVM: PPC: Book3S HV: Make HTAB code LE host aware

When running on an LE host all data structures are kept in little endian
byte order. However, the HTAB still needs to be maintained in big endian.

So every time we access any HTAB we need to make sure we do so in the right
byte order. Fix up all accesses to manually byte swap.

Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/kvm_book3s.h
arch/powerpc/include/asm/kvm_book3s_64.h
arch/powerpc/kvm/book3s_64_mmu_hv.c
arch/powerpc/kvm/book3s_hv_rm_mmu.c