MIPS: KVM: Set CP0_Status.KX on MIPS64
authorJames Hogan <james.hogan@imgtec.com>
Fri, 8 Jul 2016 10:53:24 +0000 (11:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Aug 2016 16:42:23 +0000 (18:42 +0200)
commit1d756942533b2330d8929dd0ea61a81a5d020196
treea1f356f75845aeb1d768886108be7bc95d168a4c
parente41637d85846b5b4b6ef5232a22b7e74c03f1be6
MIPS: KVM: Set CP0_Status.KX on MIPS64

Update the KVM entry code to set the CP0_Entry.KX bit on 64-bit kernels.
This is important to allow the entry code, running in kernel mode, to
access the full 64-bit address space right up to the point of entering
the guest, and immediately after exiting the guest, so it can safely
restore & save the guest context from 64-bit segments.

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/entry.c