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(-)
--
To unsubscribe from this list: send the line "unsubscribe kvm" in
the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html