diff options
author | James Hogan <james.hogan@imgtec.com> | 2016-12-06 19:27:18 +0000 |
---|---|---|
committer | James Hogan <james.hogan@imgtec.com> | 2017-02-03 15:21:20 +0000 |
commit | 420ea09b645b0fb05b326a539190c41ee900ef50 (patch) | |
tree | df80fafd38bf17f330b839205afbeb4ccbbdfdc4 /arch/mips/kvm/mmu.c | |
parent | 577ed7f71e9c37a46c45a7bd9a392dd0372a409c (diff) |
KVM: MIPS/T&E: Abstract bad access handling
Abstract the handling of bad guest loads and stores which may need to
trigger an MMIO, so that the same code can be used in a later patch for
guest KSeg0 addresses (TLB exception handling) as well as for host KSeg1
addresses (existing address error exception and TLB exception handling).
We now use kvm_mips_emulate_store() and kvm_mips_emulate_load() directly
rather than the more generic kvm_mips_emulate_inst(), as there is no
need to expose emulation of any other instructions.
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
Diffstat (limited to 'arch/mips/kvm/mmu.c')
0 files changed, 0 insertions, 0 deletions