From: Avi Kivity Subject: [PATCH 0/5] for_each_shadow_entry Date: Thu, 25 Dec 2008 15:23:34 +0200 Message-ID: <1230211419-2389-1-git-send-email-avi@redhat.com> Cc: Marcelo Tosatti To: kvm@vger.kernel.org Return-path: Received: from mx2.redhat.com ([66.187.237.31]:38042 "EHLO mx2.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751462AbYLYNXo (ORCPT ); Thu, 25 Dec 2008 08:23:44 -0500 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 mBPDNi8C013797 for ; Thu, 25 Dec 2008 08:23:44 -0500 Sender: kvm-owner@vger.kernel.org List-ID: This patchset replaces walk_shadow(), which calls a callback for each shadow pte that maps a guest virtal address, by an equivalent for_each style construct. Benefits are less thunks and smaller code. Please review. Avi Kivity (5): KVM: MMU: Add for_each_shadow_entry(), a simpler alternative to walk_shadow() KVM: MMU: Use for_each_shadow_entry() in __direct_map() KVM: MMU: Replace walk_shadow() by for_each_shadow_entry() in fetch() KVM: MMU: Replace walk_shadow() by for_each_shadow_entry() in invlpg() KVM: MMU: Drop walk_shadow() arch/x86/kvm/mmu.c | 150 ++++++++++++++----------------- arch/x86/kvm/paging_tmpl.h | 209 +++++++++++++++++++------------------------- 2 files changed, 157 insertions(+), 202 deletions(-)