Skip to content

Commit

Permalink
powerpc/44x: declare tlb_44x_index for use in C code
Browse files Browse the repository at this point in the history
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 <[email protected]>
Acked-by: Josh Boyer <[email protected]>
Signed-off-by: Avi Kivity <[email protected]>
  • Loading branch information
Hollis Blanchard authored and avikivity committed Dec 31, 2008
1 parent 8916861 commit c0ca609
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions arch/powerpc/include/asm/mmu-44x.h
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@
#ifndef __ASSEMBLY__

extern unsigned int tlb_44x_hwater;
extern unsigned int tlb_44x_index;

typedef struct {
unsigned int id;
Expand Down

0 comments on commit c0ca609

Please sign in to comment.