Skip to contentSkip to conversation

powerpc/44x: declare tlb_44x_index for use in C code

PATCH In review Hollis Blanchard 2 participants 2 messages Oct 31, 2008 – Nov 3, 2008 PowerPC

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 powerpc/44x: declare tlb_44x_index for use in C code

# HG changeset patch
# User Hollis Blanchard <[email protected]> # Date 1225479768 18000
# Node ID 59bd162a744af080479fedffa97d01e26dceee6a # Parent 635f3f74befc230d93f79dc3198c509394247ee8 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.)

---

Josh, can I get your ack? I'll submit through the KVM tree as usual.

arch/powerpc/include/asm/mmu-44x.h +1 -0
@@ -54,6 +54,7 @@
 #ifndef __ASSEMBLY__
 
 extern unsigned int tlb_44x_hwater;
+extern unsigned int tlb_44x_index;
 
 typedef struct {
 	unsigned long id;
Acked-by on v1 1/1
#1 lore raw
Quoted 13 lines · On Fri, 31 Oct 2008 14:03:12 -0500 Hollis Blanchard <[email protected]> wrote:

# HG changeset patch
# User Hollis Blanchard <[email protected]> # Date 1225479768 18000
# Node ID 59bd162a744af080479fedffa97d01e26dceee6a # Parent 635f3f74befc230d93f79dc3198c509394247ee8 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.

Quoted 4 lines

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.)

Quoted 16 lines

---

Josh, can I get your ack? I'll submit through the KVM tree as usual.

arch/powerpc/include/asm/mmu-44x.h +1 -0
@@ -54,6 +54,7 @@
 #ifndef __ASSEMBLY__
 
 extern unsigned int tlb_44x_hwater;
+extern unsigned int tlb_44x_index;
 
 typedef struct {
 	unsigned long id;