From: Xiao Guangrong Date: Fri, 31 May 2013 00:36:27 +0000 (+0800) Subject: KVM: MMU: zap pages in batch X-Git-Tag: omap-for-v3.11/fixes-for-merge-window~22^2~43 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e7d11c7a894986a13817c1c001e1e7668c5c4eb4;p=pandora-kernel.git KVM: MMU: zap pages in batch Zap at lease 10 pages before releasing mmu-lock to reduce the overload caused by requiring lock After the patch, kvm_zap_obsolete_pages can forward progress anyway, so update the comments [ It improves the case 0.6% ~ 1% that do kernel building meanwhile read PCI ROM. ] Note: i am not sure that "10" is the best speculative value, i just guessed that '10' can make vcpu do not spend long time on kvm_zap_obsolete_pages and do not cause mmu-lock too hungry. Signed-off-by: Xiao Guangrong Reviewed-by: Marcelo Tosatti Signed-off-by: Gleb Natapov --- Reading git-diff-tree failed