KVM: MMU: delay flush all tlbs on sync_page path
authorXiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Tue, 23 Nov 2010 03:13:00 +0000 (11:13 +0800)
committerAvi Kivity <avi@redhat.com>
Wed, 12 Jan 2011 09:29:51 +0000 (11:29 +0200)
commita4ee1ca4a36e7857d90ae8c2b85f1bde9a042c10
tree29707dd004ef14df318ac35321b95ac62570fc99
parent407c61c6bd6a51b56d02f8bbad8aadf19db8c7b5
KVM: MMU: delay flush all tlbs on sync_page path

Quote from Avi:
| I don't think we need to flush immediately; set a "tlb dirty" bit somewhere
| that is cleareded when we flush the tlb.  kvm_mmu_notifier_invalidate_page()
| can consult the bit and force a flush if set.

Signed-off-by: Xiao Guangrong <xiaoguangrong@cn.fujitsu.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
arch/x86/kvm/paging_tmpl.h
include/linux/kvm_host.h
virt/kvm/kvm_main.c