From: Avi Kivity Subject: [PATCH 0/5] mmu root page cleanups Date: Mon, 26 Apr 2010 11:48:38 +0300 Message-ID: <1272271723-9070-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:31592 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750804Ab0DZIsp (ORCPT ); Mon, 26 Apr 2010 04:48:45 -0400 Received: from int-mx08.intmail.prod.int.phx2.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.21]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id o3Q8miNX020193 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 26 Apr 2010 04:48:44 -0400 Received: from cleopatra.tlv.redhat.com (cleopatra.tlv.redhat.com [10.35.255.11]) by int-mx08.intmail.prod.int.phx2.redhat.com (8.13.8/8.13.8) with ESMTP id o3Q8mhNd026830 for ; Mon, 26 Apr 2010 04:48:44 -0400 Sender: kvm-owner@vger.kernel.org List-ID: I tried to separate direct and indirect page allocation to reduce memory usage with tdp, but that turned out too messy (and not much of a win - we allocate 8K per page outside the struct kvm_mmu_page). However the cleanups on the way are worthwhile. Avi Kivity (5): KVM: MMU: Rearrange struct kvm_mmu_page KVM: MMU: use 16 bits for root_count KVM: MMU: Unify 32-pae and single-root mmu setup KVM: MMU: Use correct root gfn for direct maps KVM: MMU: Fix check for cr3 outside guest memory arch/x86/include/asm/kvm_host.h | 15 ++++++----- arch/x86/kvm/mmu.c | 53 +++++++++++++++++++-------------------- 2 files changed, 34 insertions(+), 34 deletions(-)