Re: [PATCH] KVM: do not iterate over all VMs in mmu_shrink()

2012-06-05 Thread Avi Kivity
On 06/04/2012 02:53 PM, Gleb Natapov wrote: 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. Applied, thanks. -- error

[PATCH] KVM: do not iterate over all VMs in mmu_shrink()

2012-06-04 Thread Gleb Natapov
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 g...@redhat.com diff --git a/arch/x86/kvm/mmu.c