[PATCH v8 09/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-30 Thread Xiao Guangrong
kvm_zap_obsolete_pages uses lock-break technique to zap pages, it will flush tlb every time when it does lock-break We can reload mmu on all vcpus after updating the generation number so that the obsolete pages are not used on any vcpus, after that we do not need to flush tlb when obsolete pages

[PATCH v8 09/11] KVM: MMU: collapse TLB flushes when zap all pages

2013-05-30 Thread Xiao Guangrong
kvm_zap_obsolete_pages uses lock-break technique to zap pages, it will flush tlb every time when it does lock-break We can reload mmu on all vcpus after updating the generation number so that the obsolete pages are not used on any vcpus, after that we do not need to flush tlb when obsolete pages