• James Hogan's avatar
    KVM: MIPS/T&E: Treat unhandled guest KSeg0 as MMIO · b8f79ddb
    James Hogan authored
    Treat unhandled accesses to guest KSeg0 as MMIO, rather than only host
    KSeg0 addresses. This will allow read only memory regions (such as the
    Malta boot flash as emulated by QEMU) to have writes (before reads)
    treated as MMIO, and unallocated physical addresses to have all accesses
    treated as MMIO.
    
    The MMIO emulation uses the gva_to_gpa callback, so this is also updated
    for trap & emulate to handle guest KSeg0 addresses.
    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
    b8f79ddb
mmu.c 20.4 KB