]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitec5f5f019a772761887e9211c8890e60943db7e0
treea1f356f75845aeb1d768886108be7bc95d168a4c
parentc3373807e9d962dfa66c572f40a45a1822e920bc
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