]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5b587e1a1f2c648eed4e29dc11569d847859a258
tree0c52204c89a66ea2c2a2ba36f9a74216f167ce24
parentc4073bb2627e2523c08a9d090850e4189eeb6d6b
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: 3c4d0808d3e8 ("KVM/MIPS32: MMU/TLB operations for the Guest.")
Fixes: eecc25067136 ("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