Re: [PATCH 8/8] KVM: MMU: Move free_zapped_mmu_pages() out of the protection of mmu_lock

2013-02-04 Thread Takuya Yoshikawa
On Mon, 4 Feb 2013 11:50:00 -0200 Marcelo Tosatti wrote: > On Wed, Jan 23, 2013 at 07:18:11PM +0900, Takuya Yoshikawa wrote: > > We noticed that kvm_mmu_zap_all() could take hundreds of milliseconds > > for zapping mmu pages with mmu_lock held. > > > > Although we need to do conditional reschedu

Re: [PATCH 8/8] KVM: MMU: Move free_zapped_mmu_pages() out of the protection of mmu_lock

2013-02-04 Thread Marcelo Tosatti
On Wed, Jan 23, 2013 at 07:18:11PM +0900, Takuya Yoshikawa wrote: > We noticed that kvm_mmu_zap_all() could take hundreds of milliseconds > for zapping mmu pages with mmu_lock held. > > Although we need to do conditional rescheduling for completely > fixing this issue, we can reduce the hold time

[PATCH 8/8] KVM: MMU: Move free_zapped_mmu_pages() out of the protection of mmu_lock

2013-01-23 Thread Takuya Yoshikawa
We noticed that kvm_mmu_zap_all() could take hundreds of milliseconds for zapping mmu pages with mmu_lock held. Although we need to do conditional rescheduling for completely fixing this issue, we can reduce the hold time to some extent by moving free_zapped_mmu_pages() out of the protection. Sin