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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I'll pick this up, but wondering about this patch vs Trent's changes to remove this.

How is KVM on fsl-booke using this value?

- k

On Jan 4, 2009, at 12:57 AM, Liu Yu wrote:

Hi Kumar,

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


-----Original Message-----
From: Liu Yu-B13201
Sent: Friday, December 19, 2008 10:35 AM
To: kvm-ppc@xxxxxxxxxxxxxxx; linuxppc-dev@xxxxxxxxxx
Cc: hollisb@xxxxxxxxxx; Gala Kumar-B11780; Piepho
Trent-B16872; Wood Scott-B07421; Liu Yu-B13201
Subject: [PATCH v2] powerpc/fsl-booke: declare tlbcam_index
for use in c file

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 <yu.liu@xxxxxxxxxxxxx>
---
[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


--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

--
To unsubscribe from this list: send the line "unsubscribe kvm-ppc" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [KVM Development]     [KVM ARM]     [KVM ia64]     [Linux Virtualization]     [Linux USB Devel]     [Linux Video]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux