public inbox for kvm@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH 0/7] Simplify and fix fetch()
@ 2010-07-11 15:42 Avi Kivity
  2010-07-11 15:42 ` [PATCH 1/7] KVM: MMU: Add link_shadow_page() helper Avi Kivity
                   ` (6 more replies)
  0 siblings, 7 replies; 22+ messages in thread
From: Avi Kivity @ 2010-07-11 15:42 UTC (permalink / raw)
  To: Xiao Guangrong, Marcelo Tosatti, kvm

fetch() has become a monster, with a zillion continues, breaks, and gotos.
Simplify it before Xiao adds even more.

Also fix the gpte validation race.

Avi Kivity (7):
  KVM: MMU: Add link_shadow_page() helper
  KVM: MMU: Use __set_spte to link shadow pages
  KVM: MMU: Add drop_spte_if_large() helper
  KVM: MMU: Add validate_direct_spte() helper
  KVM: MMU: Add validate_indirect_spte() helper
  KVM: MMU: Simplify spte fetch() function
  KVM: MMU: Validate all gptes during fetch, not just those used for
    new pages

 arch/x86/kvm/mmu.c         |   41 +++++++++++++
 arch/x86/kvm/paging_tmpl.h |  135 +++++++++++++++++++++-----------------------
 2 files changed, 105 insertions(+), 71 deletions(-)


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

end of thread, other threads:[~2010-07-12  8:58 UTC | newest]

Thread overview: 22+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-07-11 15:42 [PATCH 0/7] Simplify and fix fetch() Avi Kivity
2010-07-11 15:42 ` [PATCH 1/7] KVM: MMU: Add link_shadow_page() helper Avi Kivity
2010-07-12  4:58   ` Xiao Guangrong
2010-07-11 15:42 ` [PATCH 2/7] KVM: MMU: Use __set_spte to link shadow pages Avi Kivity
2010-07-12  4:58   ` Xiao Guangrong
2010-07-11 15:42 ` [PATCH 3/7] KVM: MMU: Add drop_spte_if_large() helper Avi Kivity
2010-07-12  4:59   ` Xiao Guangrong
2010-07-11 15:42 ` [PATCH 4/7] KVM: MMU: Add validate_direct_spte() helper Avi Kivity
2010-07-12  5:00   ` Xiao Guangrong
2010-07-11 15:42 ` [PATCH 5/7] KVM: MMU: Add validate_indirect_spte() helper Avi Kivity
2010-07-12  5:01   ` Xiao Guangrong
2010-07-12  5:12   ` Xiao Guangrong
2010-07-12  8:50     ` Avi Kivity
2010-07-11 15:42 ` [PATCH 6/7] KVM: MMU: Simplify spte fetch() function Avi Kivity
2010-07-11 16:08   ` Avi Kivity
2010-07-12  5:10     ` Xiao Guangrong
2010-07-12  8:52       ` Avi Kivity
2010-07-12  5:08   ` Xiao Guangrong
2010-07-12  8:53     ` Avi Kivity
2010-07-11 15:42 ` [PATCH 7/7] KVM: MMU: Validate all gptes during fetch, not just those used for new pages Avi Kivity
2010-07-12  5:10   ` Xiao Guangrong
2010-07-12  8:58   ` Avi Kivity

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox