KVM: MMU: fix kvm_mmu_zap_page() and its calling path
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 16 Apr 2010 08:34:42 +0000 (16:34 +0800)
committerAvi Kivity <avi@redhat.com>
Tue, 20 Apr 2010 09:59:32 +0000 (12:59 +0300)
commit77662e0028c7c63e34257fda03ff9625c59d939d
tree71968f26c85d7bcbd5d9edfe6fd118b58fe51c99
parent78ac8b47c566dd6177a3b9b291b756ccb70670b7
KVM: MMU: fix kvm_mmu_zap_page() and its calling path

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>
arch/x86/kvm/mmu.c