From: Liu Yu <yu.liu@freescale.com>
To: linuxppc-dev@ozlabs.org, kvm-ppc@vger.kernel.org
Cc: scottwood@freescale.com, kumar.gala@freescale.com,
Liu Yu <yu.liu@freescale.com>
Subject: [PATCH] fsl-booke: declare tlbcam_index and num_tlbcam_entries for use in c file
Date: Wed, 10 Dec 2008 16:41:13 +0800 [thread overview]
Message-ID: <1228898473-29986-1-git-send-email-yu.liu@freescale.com> (raw)
KVM on E500 platform currently utilize TLB1 entries without bothering host,
that is using unused TLB1 entries.
So, KVM needs to read tlbcam_index and num_tlbcam_entries to know exactly
which TLB1 entry is unused.
Signed-off-by: Liu Yu <yu.liu@freescale.com>
---
arch/powerpc/include/asm/mmu-fsl-booke.h | 3 +++
1 files changed, 3 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..049ad8a 100644
--- a/arch/powerpc/include/asm/mmu-fsl-booke.h
+++ b/arch/powerpc/include/asm/mmu-fsl-booke.h
@@ -73,6 +73,9 @@
#ifndef __ASSEMBLY__
+extern unsigned int tlbcam_index;
+extern unsigned int num_tlbcam_entries;
+
typedef struct {
unsigned long id;
unsigned long vdso_base;
--
1.5.4
next reply other threads:[~2008-12-10 8:45 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-10 8:41 Liu Yu [this message]
2008-12-10 14:04 ` [PATCH] fsl-booke: declare tlbcam_index and num_tlbcam_entries for use in c file Trent Piepho
2008-12-11 2:16 ` Liu Yu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1228898473-29986-1-git-send-email-yu.liu@freescale.com \
--to=yu.liu@freescale.com \
--cc=kumar.gala@freescale.com \
--cc=kvm-ppc@vger.kernel.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=scottwood@freescale.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).