From patchwork Fri Oct 31 19:03:12 2008 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hollis Blanchard X-Patchwork-Id: 6739 X-Patchwork-Delegate: jwboyer@gmail.com Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from ozlabs.org (localhost [127.0.0.1]) by ozlabs.org (Postfix) with ESMTP id 8E92BDDF06 for ; Sat, 1 Nov 2008 06:04:19 +1100 (EST) X-Original-To: linuxppc-dev@ozlabs.org Delivered-To: linuxppc-dev@ozlabs.org Received: from e5.ny.us.ibm.com (e5.ny.us.ibm.com [32.97.182.145]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "e5.ny.us.ibm.com", Issuer "Equifax" (verified OK)) by ozlabs.org (Postfix) with ESMTPS id 95245DDDFD for ; Sat, 1 Nov 2008 06:03:21 +1100 (EST) Received: from d01relay04.pok.ibm.com (d01relay04.pok.ibm.com [9.56.227.236]) by e5.ny.us.ibm.com (8.13.8/8.13.8) with ESMTP id m9VJ3G5W019929 for ; Fri, 31 Oct 2008 15:03:16 -0400 Received: from d01av02.pok.ibm.com (d01av02.pok.ibm.com [9.56.224.216]) by d01relay04.pok.ibm.com (8.13.8/8.13.8/NCO v9.1) with ESMTP id m9VJ3G4J117454 for ; Fri, 31 Oct 2008 15:03:16 -0400 Received: from d01av02.pok.ibm.com (loopback [127.0.0.1]) by d01av02.pok.ibm.com (8.12.11.20060308/8.13.3) with ESMTP id m9VJ37NU032157 for ; Fri, 31 Oct 2008 15:03:08 -0400 Received: from localhost.localdomain (slate.austin.ibm.com [9.53.41.42]) by d01av02.pok.ibm.com (8.12.11.20060308/8.12.11) with ESMTP id m9VJ36cU032098; Fri, 31 Oct 2008 15:03:07 -0400 MIME-Version: 1.0 Subject: [PATCH] powerpc/44x: declare tlb_44x_index for use in C code X-Mercurial-Node: 59bd162a744af080479fedffa97d01e26dceee6a Message-Id: <59bd162a744af080479f.1225479792@localhost.localdomain> Date: Fri, 31 Oct 2008 14:03:12 -0500 From: Hollis Blanchard To: Josh Boyer Cc: linuxppc-dev@ozlabs.org, kvm-ppc@vger.kernel.org X-BeenThere: linuxppc-dev@ozlabs.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org Errors-To: linuxppc-dev-bounces+patchwork-incoming=ozlabs.org@ozlabs.org # HG changeset patch # User Hollis Blanchard # Date 1225479768 18000 # Node ID 59bd162a744af080479fedffa97d01e26dceee6a # Parent 635f3f74befc230d93f79dc3198c509394247ee8 powerpc/44x: declare tlb_44x_index for use in C code KVM currently ignores the host's round robin TLB eviction selection, instead maintaining its own TLB state and its own round robin index. However, by participating in the normal 44x TLB selection, we can drop the alternate TLB processing in KVM. This results in a significant performance improvement, since that processing currently must be done on *every* guest exit. Accordingly, KVM needs to be able to access and increment tlb_44x_index. (KVM on 440 cannot be a module, so there is no need to export this symbol.) Signed-off-by: Hollis Blanchard Acked-by: Josh Boyer --- Josh, can I get your ack? I'll submit through the KVM tree as usual. diff --git a/arch/powerpc/include/asm/mmu-44x.h b/arch/powerpc/include/asm/mmu-44x.h --- a/arch/powerpc/include/asm/mmu-44x.h +++ b/arch/powerpc/include/asm/mmu-44x.h @@ -54,6 +54,7 @@ #ifndef __ASSEMBLY__ extern unsigned int tlb_44x_hwater; +extern unsigned int tlb_44x_index; typedef struct { unsigned long id;