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: Liu Yu <hidden>
Date: 2009-01-04 06:57:38

Hi Kumar,

Can I get your ack?
So that I can submit this patch through KVM tree.

quoted hunk ↗ jump to hunk
-----Original Message-----
From: Liu Yu-B13201=20
Sent: Friday, December 19, 2008 10:35 AM
To: kvm-ppc@vger.kernel.org; linuxppc-dev@ozlabs.org
Cc: hollisb@us.ibm.com; Gala Kumar-B11780; Piepho=20
Trent-B16872; Wood Scott-B07421; Liu Yu-B13201
Subject: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index=20
for use in c file
=20
KVM on E500 platform currently utilize TLB1 entries without=20
bothering host,
that is using unused TLB1 entries.
=20
So, KVM needs to read tlbcam_index to know exactly
which TLB1 entry is unused by host.
=20
Signed-off-by: Liu Yu <redacted>
---
[v2]
Remove num_tlbcam_entries declare and read from SPRN_TLB1CFG=20
in KVM instead.
=20
 arch/powerpc/include/asm/mmu-fsl-booke.h |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
=20
diff --git a/arch/powerpc/include/asm/mmu-fsl-booke.h=20
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 @@
=20
 #ifndef __ASSEMBLY__
=20
+extern unsigned int tlbcam_index;
+
 typedef struct {
 	unsigned long id;
 	unsigned long vdso_base;
--=20
1.5.4
=20
=20
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help