MIPS: KVM: Propagate kseg0/mapped tlb fault errors
commit432273c710ae564a9530f44c0deb92b9e7a463d8
authorJames Hogan <james.hogan@imgtec.com>
Thu, 18 Aug 2016 09:01:29 +0000 (18 10:01 +0100)
committerSasha Levin <alexander.levin@verizon.com>
Sat, 20 Aug 2016 03:08:49 +0000 (19 23:08 -0400)
treef71963443fe3b31c4ddd133f724f115fb42fe73d
parent7fe3930e1f146476e81eca06ca0833bd477b3da8
MIPS: KVM: Propagate kseg0/mapped tlb fault errors

commit 9b731bcfdec4c159ad2e4312e25d69221709b96a upstream.

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
Signed-off-by: Radim Krčmář <rkrcmar@redhat.com>
[james.hogan@imgtec.com: Backport to v4.7]
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
arch/mips/kvm/emulate.c
arch/mips/kvm/tlb.c