kvm.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH v2 0/9] Optimize page table walk
@ 2012-09-16 12:07 Avi Kivity
  2012-09-16 12:07 ` [PATCH v2 1/9] KVM: MMU: Push clean gpte write protection out of gpte_access() Avi Kivity
                   ` (8 more replies)
  0 siblings, 9 replies; 21+ messages in thread
From: Avi Kivity @ 2012-09-16 12:07 UTC (permalink / raw)
  To: Marcelo Tosatti; +Cc: kvm, Xiao Guangrong

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.

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 (9):
  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

 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      | 190 +++++++++++++++++-----------------------
 arch/x86/kvm/x86.c              |  11 +--
 5 files changed, 202 insertions(+), 129 deletions(-)

-- 
1.7.12


^ permalink raw reply	[flat|nested] 21+ messages in thread

end of thread, other threads:[~2012-09-19 17:18 UTC | newest]

Thread overview: 21+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-09-16 12:07 [PATCH v2 0/9] Optimize page table walk Avi Kivity
2012-09-16 12:07 ` [PATCH v2 1/9] KVM: MMU: Push clean gpte write protection out of gpte_access() Avi Kivity
2012-09-16 12:07 ` [PATCH v2 2/9] KVM: MMU: Optimize gpte_access() slightly Avi Kivity
2012-09-16 12:07 ` [PATCH v2 3/9] KVM: MMU: Move gpte_access() out of paging_tmpl.h Avi Kivity
2012-09-16 12:07 ` [PATCH v2 4/9] KVM: MMU: Update accessed and dirty bits after guest pagetable walk Avi Kivity
2012-09-18  6:37   ` Xiao Guangrong
2012-09-16 12:07 ` [PATCH v2 5/9] KVM: MMU: Optimize pte permission checks Avi Kivity
2012-09-18  6:45   ` Xiao Guangrong
2012-09-19 16:06     ` Avi Kivity
2012-09-16 12:07 ` [PATCH v2 6/9] KVM: MMU: Simplify walk_addr_generic() loop Avi Kivity
2012-09-18  6:53   ` Xiao Guangrong
2012-09-19 16:29     ` Avi Kivity
2012-09-16 12:07 ` [PATCH v2 7/9] KVM: MMU: Optimize is_last_gpte() Avi Kivity
2012-09-18  7:36   ` Xiao Guangrong
2012-09-19 17:17     ` Avi Kivity
2012-09-19 17:18       ` Avi Kivity
2012-09-16 12:07 ` [PATCH v2 8/9] KVM: MMU: Eliminate eperm temporary Avi Kivity
2012-09-18  7:00   ` Xiao Guangrong
2012-09-16 12:07 ` [PATCH v2 9/9] KVM: MMU: Avoid access/dirty update loop if all is well Avi Kivity
2012-09-18  7:21   ` Xiao Guangrong
2012-09-19 16:12     ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).