From: Avi Kivity Subject: [PATCH v3 00/10] Optimize page table walk Date: Wed, 19 Sep 2012 19:36:47 +0300 Message-ID: <1348072617-23575-1-git-send-email-avi@redhat.com> Cc: kvm@vger.kernel.org, Xiao Guangrong To: Marcelo Tosatti Return-path: Received: from mx1.redhat.com ([209.132.183.28]:55923 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1756638Ab2ISQhm (ORCPT ); Wed, 19 Sep 2012 12:37:42 -0400 Sender: kvm-owner@vger.kernel.org List-ID: The page table walk has gotten crufty over the years and is threatening to become even more crufty when SMAP is introduced. Clean it up (and optimize it) somewhat. v3: fix another boolflip pointed out by Xiao Guangrong some cosmetics v2: fix SMEP false positive by moving checks to the end of the walk fix last_pte_bitmap documentation fix incorrect SMEP fault permission checks introduce helper for accessing the permission bitmap Avi Kivity (10): KVM: MMU: Push clean gpte write protection out of gpte_access() KVM: MMU: Optimize gpte_access() slightly KVM: MMU: Move gpte_access() out of paging_tmpl.h KVM: MMU: Update accessed and dirty bits after guest pagetable walk KVM: MMU: Optimize pte permission checks KVM: MMU: Simplify walk_addr_generic() loop KVM: MMU: Optimize is_last_gpte() KVM: MMU: Eliminate eperm temporary KVM: MMU: Avoid access/dirty update loop if all is well KVM: MMU: Eliminate pointless temporary 'ac' arch/x86/include/asm/kvm_host.h | 14 +++ arch/x86/kvm/mmu.c | 91 +++++++++++++++++++ arch/x86/kvm/mmu.h | 25 +++--- arch/x86/kvm/paging_tmpl.h | 191 +++++++++++++++++----------------------- arch/x86/kvm/x86.c | 11 +-- 5 files changed, 202 insertions(+), 130 deletions(-) -- 1.7.12