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. Avi Kivity (5): 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: Optimize pte permission checks KVM: MMU: Simplify walk_addr_generic() loop arch/x86/include/asm/kvm_host.h | 7 +++ arch/x86/kvm/mmu.c | 60 ++++++++++++++++++++++ arch/x86/kvm/mmu.h | 16 +----- arch/x86/kvm/paging_tmpl.h | 109 +++++++++++++--------------------------- arch/x86/kvm/x86.c | 12 ++--- 5 files changed, 110 insertions(+), 94 deletions(-) -- 1.7.11.3 -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html