KVM: MMU: fix kvm_mmu_zap_page() and its calling path
commitf1f52e1094fc4e39bfd3071e33803fbbf0543d49
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 16 Apr 2010 08:34:42 +0000 (16 16:34 +0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Mon, 26 Apr 2010 14:48:05 +0000 (26 07:48 -0700)
tree4e4c7807ef496fa025fdd93beb8cd9a66e02772f
parent01b0fb7b85b4b8a3027e5cc7663ae8b2193b1104
KVM: MMU: fix kvm_mmu_zap_page() and its calling path

(Cherry-picked from commit 77662e0028c7c63e34257fda03ff9625c59d939d)

This patch fix:

- calculate zapped page number properly in mmu_zap_unsync_children()
- calculate freeed page number properly kvm_mmu_change_mmu_pages()
- if zapped children page it shoud restart hlist walking

KVM-Stable-Tag.
Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
arch/x86/kvm/mmu.c