]> git.openfabrics.org - ~emulex/infiniband.git/commit
KVM: PPC: e500: Fix default tlb for victim hint
authorMihai Caraman <mihai.caraman@freescale.com>
Mon, 30 Jun 2014 12:54:58 +0000 (15:54 +0300)
committerAlexander Graf <agraf@suse.de>
Mon, 28 Jul 2014 13:22:20 +0000 (15:22 +0200)
commitd57cef91a0c30d3439a4d235eb94ab9efbf797a0
tree6a3c90fd213f531116afd393e89611b7a1cb9c8e
parent9642382e826066c2d30d1b23d1b45410cdd8e07d
KVM: PPC: e500: Fix default tlb for victim hint

Tlb search operation used for victim hint relies on the default tlb set by the
host. When hardware tablewalk support is enabled in the host, the default tlb is
TLB1 which leads KVM to evict the bolted entry. Set and restore the default tlb
when searching for victim hint.

Signed-off-by: Mihai Caraman <mihai.caraman@freescale.com>
Reviewed-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
arch/powerpc/include/asm/mmu-book3e.h
arch/powerpc/kvm/e500_mmu_host.c