]> git.baikalelectronics.ru Git - kernel.git/commit
KVM: PPC: e500: use hardware hint when loading TLB0 entries
authorScott Wood <scottwood@freescale.com>
Tue, 29 Nov 2011 10:40:23 +0000 (10:40 +0000)
committerAvi Kivity <avi@redhat.com>
Mon, 5 Mar 2012 12:52:34 +0000 (14:52 +0200)
commitbc57e3fc64b178682074d8b83d2789ca4b382651
treebf7e4f4c2d708e56896e1bb4a3db4c2a796df023
parent85e57b7edf06d79fa160e5738fdd07d0e8277efd
KVM: PPC: e500: use hardware hint when loading TLB0 entries

The hardware maintains a per-set next victim hint.  Using this
reduces conflicts, especially on e500v2 where a single guest
TLB entry is mapped to two shadow TLB entries (user and kernel).
We want those two entries to go to different TLB ways.

sesel is now only used for TLB1.

Reported-by: Liu Yu <yu.liu@freescale.com>
Signed-off-by: Scott Wood <scottwood@freescale.com>
Signed-off-by: Alexander Graf <agraf@suse.de>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/mmu-book3e.h
arch/powerpc/kvm/e500_tlb.c