• James Hogan's avatar
    MIPS: KVM: Simplify even/odd TLB handling · 021df206
    James Hogan authored
    When handling TLB faults in the guest KSeg0 region, a pair of physical
    addresses are read from the guest physical address map. However that
    process is rather convoluted with an if/then/else statement. Simplify it
    to just clear the lowest bit for the even entry and set the lowest bit
    for the odd entry.
    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
    Signed-off-by: default avatarPaolo Bonzini <pbonzini@redhat.com>
    021df206
mmu.c 9.9 KB