]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: KVM: Fix 64-bit big endian dynamic translation
authorJames Hogan <james.hogan@imgtec.com>
Fri, 8 Jul 2016 10:53:27 +0000 (11:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Aug 2016 16:42:25 +0000 (18:42 +0200)
commit6a7c9cef4cf76f56a32ba67a97f003565392fa68
tree80e41efb53902c276f2fd64e1f84c9249cafe8b1
parent24961855f71ba5138f3d83976a1ec5eb1472d787
MIPS: KVM: Fix 64-bit big endian dynamic translation

The MFC0 and MTC0 instructions in the guest which cause traps can be
replaced with 32-bit loads and stores to the commpage, however on big
endian 64-bit builds the offset needs to have 4 added so as to
load/store the least significant half of the long instead of the most
significant half.

Signed-off-by: James Hogan <james.hogan@imgtec.com>
Cc: Paolo Bonzini <pbonzini@redhat.com>
Cc: "Radim Krčmář" <rkrcmar@redhat.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: linux-mips@linux-mips.org
Cc: kvm@vger.kernel.org
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
arch/mips/kvm/dyntrans.c