From: Avi Kivity Subject: [PATCH 0/7] Simplify and fix fetch() Date: Sun, 11 Jul 2010 18:42:28 +0300 Message-ID: <1278862955-6890-1-git-send-email-avi@redhat.com> To: Xiao Guangrong , Marcelo Tosatti , kvm@vger.kernel.org Return-path: Received: from mx1.redhat.com ([209.132.183.28]:1525 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751523Ab0GKPmi (ORCPT ); Sun, 11 Jul 2010 11:42:38 -0400 Sender: kvm-owner@vger.kernel.org List-ID: 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(-)