From: Gleb Natapov Date: Fri, 31 May 2013 00:36:30 +0000 (+0800) Subject: KVM: MMU: reduce KVM_REQ_MMU_RELOAD when root page is zapped X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~22^2~40 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=05988d728dcd962d50374e4e63171324163005b6;p=pandora-kernel.git KVM: MMU: reduce KVM_REQ_MMU_RELOAD when root page is zapped Quote Gleb's mail: | why don't we check for sp->role.invalid in | kvm_mmu_prepare_zap_page before calling kvm_reload_remote_mmus()? and | Actually we can add check for is_obsolete_sp() there too since | kvm_mmu_invalidate_all_pages() already calls kvm_reload_remote_mmus() | after incrementing mmu_valid_gen. [ Xiao: add some comments and the check of is_obsolete_sp() ] Signed-off-by: Gleb Natapov Signed-off-by: Xiao Guangrong Reviewed-by: Marcelo Tosatti Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed