From patchwork Sun Apr 5 17:54:46 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marcelo Tosatti X-Patchwork-Id: 16451 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 n35HtXCw006246 for ; Sun, 5 Apr 2009 17:55:33 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751801AbZDERzb (ORCPT ); Sun, 5 Apr 2009 13:55:31 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751744AbZDERza (ORCPT ); Sun, 5 Apr 2009 13:55:30 -0400 Received: from mx2.redhat.com ([66.187.237.31]:56794 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751684AbZDERz1 (ORCPT ); Sun, 5 Apr 2009 13:55:27 -0400 Received: from int-mx2.corp.redhat.com (int-mx2.corp.redhat.com [172.16.27.26]) by mx2.redhat.com (8.13.8/8.13.8) with ESMTP id n35HtN4v023195 for ; Sun, 5 Apr 2009 13:55:23 -0400 Received: from ns3.rdu.redhat.com (ns3.rdu.redhat.com [10.11.255.199]) by int-mx2.corp.redhat.com (8.13.1/8.13.1) with ESMTP id n35HtOkP003115; Sun, 5 Apr 2009 13:55:24 -0400 Received: from amt.cnet (vpn-10-39.str.redhat.com [10.32.10.39]) by ns3.rdu.redhat.com (8.13.8/8.13.8) with ESMTP id n35HtLvP007078; Sun, 5 Apr 2009 13:55:22 -0400 Received: from amt.cnet (amt.cnet [127.0.0.1]) by amt.cnet (Postfix) with ESMTP id CB3FD6814E0; Sun, 5 Apr 2009 14:54:50 -0300 (BRT) Received: (from marcelo@localhost) by amt.cnet (8.14.3/8.14.3/Submit) id n35Hsnl6012072; Sun, 5 Apr 2009 14:54:49 -0300 Message-Id: <20090405175459.947389522@localhost.localdomain> References: <20090405175445.045353301@localhost.localdomain> User-Agent: quilt/0.46-1 Date: Sun, 05 Apr 2009 14:54:46 -0300 From: Marcelo Tosatti To: kvm@vger.kernel.org Cc: avi@redhat.com, Marcelo Tosatti Subject: [patch 1/2] KVM: MMU: disable global page optimization Content-Disposition: inline; filename=disable-global-page-optimization X-Scanned-By: MIMEDefang 2.58 on 172.16.27.26 Sender: kvm-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: kvm@vger.kernel.org Complexity to fix it not worthwhile the gains, as discussed in http://article.gmane.org/gmane.comp.emulators.kvm.devel/28649. Signed-off-by: Marcelo Tosatti Index: kvm/arch/x86/kvm/mmu.c =================================================================== --- kvm.orig/arch/x86/kvm/mmu.c +++ kvm/arch/x86/kvm/mmu.c @@ -1254,7 +1254,7 @@ static struct kvm_mmu_page *kvm_mmu_get_ pgprintk("%s: adding gfn %lx role %x\n", __func__, gfn, role.word); sp->gfn = gfn; sp->role = role; - sp->global = role.cr4_pge; + sp->global = 0; hlist_add_head(&sp->hash_link, bucket); if (!direct) { if (rmap_write_protect(vcpu->kvm, gfn))