MIPS: KVM: Propagate kseg0/mapped tlb fault errors
authorJames Hogan <james.hogan@imgtec.com>
Thu, 11 Aug 2016 10:58:15 +0000 (11:58 +0100)
committerRadim Krčmář <rkrcmar@redhat.com>
Fri, 12 Aug 2016 10:01:30 +0000 (12:01 +0200)
commit9b731bcfdec4c159ad2e4312e25d69221709b96a
tree0c52204c89a66ea2c2a2ba36f9a74216f167ce24
parent0741f52d1b980dbeb290afe67d88fc2928edd8ab
MIPS: KVM: Propagate kseg0/mapped tlb fault errors

Propagate errors from kvm_mips_handle_kseg0_tlb_fault() and
kvm_mips_handle_mapped_seg_tlb_fault(), usually triggering an internal
error since they normally indicate the guest accessed bad physical
memory or the commpage in an unexpected way.

Fixes: 858dd5d45733 ("KVM/MIPS32: MMU/TLB operations for the Guest.")
Fixes: e685c689f3a8 ("KVM/MIPS32: Privileged instruction/target branch emulation.")
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
Cc: <stable@vger.kernel.org> # 3.10.x-
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
arch/mips/kvm/emulate.c
arch/mips/kvm/mmu.c