Re: [Qemu-devel] [PATCH 4/4] KVM: MMU: fast cleanup D bit based on fast write protect

2019-01-23 Thread Zhuangyanying
> -Original Message- > From: Sean Christopherson [mailto:sean.j.christopher...@intel.com] > Sent: Tuesday, January 22, 2019 11:17 PM > To: Zhuangyanying > Cc: xiaoguangr...@tencent.com; pbonz...@redhat.com; Gonglei (Arei) > ; qemu-devel@nongnu.org; k...@vger.kernel.org; > wangxin (U) ;

Re: [Qemu-devel] [PATCH 4/4] KVM: MMU: fast cleanup D bit based on fast write protect

2019-01-22 Thread Sean Christopherson
On Mon, Jan 21, 2019 at 06:37:36AM +, Zhuangyanying wrote: > > > > u64 wp_all_indicator, kvm_wp_all_gen; > > > > > > - mutex_lock(&kvm->slots_lock); > > > wp_all_indicator = get_write_protect_all_indicator(kvm); > > > kvm_wp_all_gen = get_write_protect_all_gen(wp_all_indicator); > > > >

Re: [Qemu-devel] [PATCH 4/4] KVM: MMU: fast cleanup D bit based on fast write protect

2019-01-20 Thread Zhuangyanying
> -Original Message- > From: Sean Christopherson [mailto:sean.j.christopher...@intel.com] > Sent: Friday, January 18, 2019 12:32 AM > To: Zhuangyanying > Cc: xiaoguangr...@tencent.com; pbonz...@redhat.com; Gonglei (Arei) > ; qemu-devel@nongnu.org; k...@vger.kernel.org; > wangxin (U) ; L

Re: [Qemu-devel] [PATCH 4/4] KVM: MMU: fast cleanup D bit based on fast write protect

2019-01-17 Thread Sean Christopherson
On Thu, Jan 17, 2019 at 01:55:31PM +, Zhuangyanying wrote: > From: Zhuang Yanying > > When live-migration with large-memory guests, vcpu may hang for a long > time while starting migration, such as 9s for 2T > (linux-5.0.0-rc2+qemu-3.1.0). > The reason is memory_global_dirty_log_start() takin

[Qemu-devel] [PATCH 4/4] KVM: MMU: fast cleanup D bit based on fast write protect

2019-01-17 Thread Zhuangyanying
From: Zhuang Yanying When live-migration with large-memory guests, vcpu may hang for a long time while starting migration, such as 9s for 2T (linux-5.0.0-rc2+qemu-3.1.0). The reason is memory_global_dirty_log_start() taking too long, and the vcpu is waiting for BQL. The page-by-page D bit clearup