KVM: MMU: split the operations of kvm_mmu_zap_page()
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Fri, 4 Jun 2010 13:53:54 +0000 (21:53 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 1 Aug 2010 07:39:27 +0000 (10:39 +0300)
commit7775834a233478ec855b97e30727248f12eafe76
tree06902a6515f0c65b46d1aae37c3d362ca07258d5
parent7ae680eb2d5f0cb10ca0e6d1ff5ecb145befe8e4
KVM: MMU: split the operations of kvm_mmu_zap_page()

Using kvm_mmu_prepare_zap_page() and kvm_mmu_commit_zap_page() to
split kvm_mmu_zap_page() function, then we can:

- traverse hlist safely
- easily to gather remote tlb flush which occurs during page zapped

Those feature can be used in the later patches

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Avi Kivity <avi@redhat.com>
arch/x86/kvm/mmu.c
arch/x86/kvm/mmutrace.h