]> git.baikalelectronics.ru Git - kernel.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)
commit54689d712b1d4139c276f8698f27a842335a55d8
tree6a3c90fd213f531116afd393e89611b7a1cb9c8e
parent918b230d8401f7b25ce3b543287ba3b14deb9a33
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