From: Gleb Natapov Date: Mon, 4 Jun 2012 11:53:23 +0000 (+0300) Subject: KVM: MMU: do not iterate over all VMs in mmu_shrink() X-Git-Tag: v3.6-rc1~124^2~76 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1952639665e92481c34c34c3e2a71bf3e66ba362;p=pandora-kernel.git KVM: MMU: do not iterate over all VMs in mmu_shrink() mmu_shrink() needlessly iterates over all VMs even though it will not attempt to free mmu pages from more than one on them. Fix that and also check used mmu pages count outside of VM lock to skip inactive VMs faster. Signed-off-by: Gleb Natapov Signed-off-by: Avi Kivity --- Reading git-diff-tree failed