]> www.infradead.org Git - users/dwmw2/linux.git/commit
powerpc/44x: declare tlb_44x_index for use in C code
authorHollis Blanchard <hollisb@us.ibm.com>
Tue, 2 Dec 2008 21:51:54 +0000 (15:51 -0600)
committerAvi Kivity <avi@redhat.com>
Wed, 3 Dec 2008 11:29:08 +0000 (13:29 +0200)
commitfa1b7070bddbd24f4bc007086b6af2eb3a5d94e4
treec167b844c7662bdc47454cf87ec6ecfa97d1c35c
parent9eb99bcc1007f8288c7a1e5298ecf1f94228fba0
powerpc/44x: declare tlb_44x_index for use in C code

KVM currently ignores the host's round robin TLB eviction selection, instead
maintaining its own TLB state and its own round robin index. However, by
participating in the normal 44x TLB selection, we can drop the alternate TLB
processing in KVM. This results in a significant performance improvement,
since that processing currently must be done on *every* guest exit.

Accordingly, KVM needs to be able to access and increment tlb_44x_index.
(KVM on 440 cannot be a module, so there is no need to export this symbol.)

Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
Acked-by: Josh Boyer <jwboyer@linux.vnet.ibm.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/powerpc/include/asm/mmu-44x.h