• James Hogan's avatar
    MIPS: KVM: Use dump_tlb_all() for kvm_mips_dump_host_tlbs() · e922a4cb
    James Hogan authored
    KVM implements its own routine for dumping the host TLB entries, but we
    already have dump_tlb_all() which does something very similar (although
    it only prints out TLB entries which match the current ASID or are
    global).
    
    Make KVM use dump_tlb_all() along with dump_tlb_regs() to avoid the
    duplication and inevitable bitrot, allowing TLB dumping enhancements
    (e.g. for VZ and GuestIDs) to be made in a single place.
    Signed-off-by: default avatarJames Hogan <james.hogan@imgtec.com>
    Cc: Ralf Baechle <ralf@linux-mips.org>
    Cc: Paolo Bonzini <pbonzini@redhat.com>
    Cc: Radim Krčmář <rkrcmar@redhat.com>
    Cc: linux-mips@linux-mips.org
    Cc: kvm@vger.kernel.org
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    e922a4cb
tlb.c 8.72 KB