• James Hogan's avatar
    KVM: MIPS/T&E: Abstract bad access handling · 420ea09b
    James Hogan authored
    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: default avatarJames 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
    420ea09b
trap_emul.c 28 KB