MIPS: KVM: Fail if ebase doesn't fit in CP0_EBase
authorJames Hogan <james.hogan@imgtec.com>
Fri, 8 Jul 2016 10:53:26 +0000 (11:53 +0100)
committerPaolo Bonzini <pbonzini@redhat.com>
Mon, 1 Aug 2016 16:42:24 +0000 (18:42 +0200)
commit2a06dab877dee3d4144c3ba32c662db18a1fdd2b
tree70073a52c9257c1462f9fd9d9a15ca73e68df94d
parent0d17aea5c27d7d748b1d8116d275b2b17dc5cad6
MIPS: KVM: Fail if ebase doesn't fit in CP0_EBase

Fail if the address of the allocated exception base doesn't fit into the
CP0_EBase register. This can happen on MIPS64 if CP0_EBase.WG isn't
implemented but RAM is available outside of the range of KSeg0.

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