Thread (6 messages) flat view 6 messages, 3 authors, 2009-01-07

Re: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index for use in c file

From: Kumar Gala <hidden>
Date: 2009-01-07 15:10:26

On Dec 18, 2008, at 8:34 PM, Liu Yu wrote:
quoted hunk ↗ jump to hunk
KVM on E500 platform currently utilize TLB1 entries without  
bothering host,
that is using unused TLB1 entries.

So, KVM needs to read tlbcam_index to know exactly
which TLB1 entry is unused by host.

Signed-off-by: Liu Yu <redacted>
---
[v2]
Remove num_tlbcam_entries declare and read from SPRN_TLB1CFG in KVM  
instead.

arch/powerpc/include/asm/mmu-fsl-booke.h |    2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/arch/powerpc/include/asm/mmu-fsl-booke.h b/arch/powerpc/ 
include/asm/mmu-fsl-booke.h
index 925d93c..c86af6c 100644
--- a/arch/powerpc/include/asm/mmu-fsl-booke.h
+++ b/arch/powerpc/include/asm/mmu-fsl-booke.h
@@ -73,6 +73,8 @@
#ifndef __ASSEMBLY__

+extern unsigned int tlbcam_index;
+
typedef struct {
	unsigned long id;
	unsigned long vdso_base;
-- 
1.5.4
Acked-by: Kumar Gala <redacted>

(Hollis will you deal with sending this via the KVM tree?)

- k
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help