]> git.baikalelectronics.ru Git - kernel.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)
commitc957e29ca56dd81ba64cc8c217684af57ceaf950
tree857f31bd9f100282b0e833b26a5d45bbc23a3a5d
parent502b4e539a50935b7d87de9193506e19fa139128
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