From patchwork Wed Jan 14 16:47:36 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hollis Blanchard X-Patchwork-Id: 2347 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n0EGiL0f029346 for ; Wed, 14 Jan 2009 08:44:22 -0800 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1764587AbZANQrx (ORCPT ); Wed, 14 Jan 2009 11:47:53 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1764578AbZANQrx (ORCPT ); Wed, 14 Jan 2009 11:47:53 -0500 Received: from e31.co.us.ibm.com ([32.97.110.149]:36287 "EHLO e31.co.us.ibm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1764527AbZANQrr (ORCPT ); Wed, 14 Jan 2009 11:47:47 -0500 Received: from d03relay02.boulder.ibm.com (d03relay02.boulder.ibm.com [9.17.195.227]) by e31.co.us.ibm.com (8.13.1/8.13.1) with ESMTP id n0EGjt55030081; Wed, 14 Jan 2009 09:45:55 -0700 Received: from d03av03.boulder.ibm.com (d03av03.boulder.ibm.com [9.17.195.169]) by d03relay02.boulder.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id n0EGlelt187208; Wed, 14 Jan 2009 09:47:42 -0700 Received: from d03av03.boulder.ibm.com (loopback [127.0.0.1]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id n0EGldwp003161; Wed, 14 Jan 2009 09:47:39 -0700 Received: from localhost.localdomain (slate.austin.ibm.com [9.53.41.42]) by d03av03.boulder.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id n0EGlcIF003111; Wed, 14 Jan 2009 09:47:39 -0700 From: Hollis Blanchard To: avi@redhat.com Cc: kvm@vger.kernel.org, kvm-ppc@vger.kernel.org, Liu Yu Subject: [PATCH 1/3] Subject: powerpc/fsl-booke: declare tlbcam_index for use in c Date: Wed, 14 Jan 2009 10:47:36 -0600 Message-Id: X-Mailer: git-send-email 1.5.6.6 In-Reply-To: <1231951658-21108-1-git-send-email-hollisb@us.ibm.com> References: <1231951658-21108-1-git-send-email-hollisb@us.ibm.com> Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org From: Liu Yu So, KVM needs to read tlbcam_index to know exactly which TLB1 entry is unused by host. Signed-off-by: Liu Yu Acked-by: Kumar Gala Signed-off-by: Hollis Blanchard --- 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 3f941c0..4285b64 100644 --- a/arch/powerpc/include/asm/mmu-fsl-booke.h +++ b/arch/powerpc/include/asm/mmu-fsl-booke.h @@ -75,6 +75,8 @@ #ifndef __ASSEMBLY__ +extern unsigned int tlbcam_index; + typedef struct { unsigned int id; unsigned int active;