KVM: Fix mmu shrinker error
authorGui Jianfeng <guijianfeng@cn.fujitsu.com>
Tue, 27 Apr 2010 02:39:49 +0000 (10:39 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 19 May 2010 08:36:23 +0000 (11:36 +0300)
commitd35b8dd9355805f17225fdbfee4bc704d7bf7547
tree7e287a657cf320b82cdba21d3db860be532c556d
parent5a7388c2d2faa2cc70c2d4717c8d7836d55459e0
KVM: Fix mmu shrinker error

kvm_mmu_remove_one_alloc_mmu_page() assumes kvm_mmu_zap_page() only reclaims
only one sp, but that's not the case. This will cause mmu shrinker returns
a wrong number. This patch fix the counting error.

Signed-off-by: Gui Jianfeng <guijianfeng@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/mmu.c