KVM: MMU: count used shadow pages on prepareing path
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Mon, 11 Jul 2011 19:26:40 +0000 (03:26 +0800)
committerAvi Kivity <avi@redhat.com>
Sun, 24 Jul 2011 08:50:31 +0000 (11:50 +0300)
commitaa6bd187af013319c3f18be7b0970d9a3d1be696
tree5251f25b04b95f1a5443726c3d0795664755482b
parentb90a0e6c81d7b1fef0b7dea007015e1a56ab14c7
KVM: MMU: count used shadow pages on prepareing path

Move counting used shadow pages from commiting path to preparing path to
reduce tlb flush on some paths

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