Re: [PATCH 7/8] KVM: make async_pf work queue lockless

2010-10-28 Thread Gleb Natapov
On Thu, Oct 28, 2010 at 05:08:58PM +0800, Xiao Guangrong wrote: > On 10/27/2010 07:41 PM, Gleb Natapov wrote: > > On Wed, Oct 27, 2010 at 05:09:41PM +0800, Xiao Guangrong wrote: > >> The async_pf number is very few since only pending interrupt can > >> let it re-enter to the guest mode. > >> > >> D

Re: [PATCH 7/8] KVM: make async_pf work queue lockless

2010-10-28 Thread Xiao Guangrong
On 10/27/2010 07:41 PM, Gleb Natapov wrote: > On Wed, Oct 27, 2010 at 05:09:41PM +0800, Xiao Guangrong wrote: >> The async_pf number is very few since only pending interrupt can >> let it re-enter to the guest mode. >> >> During my test(Host 4 CPU + 4G, Guest 4 VCPU + 6G), it's no >> more than 10 r

Re: [PATCH 7/8] KVM: make async_pf work queue lockless

2010-10-27 Thread Gleb Natapov
On Wed, Oct 27, 2010 at 05:09:41PM +0800, Xiao Guangrong wrote: > The async_pf number is very few since only pending interrupt can > let it re-enter to the guest mode. > > During my test(Host 4 CPU + 4G, Guest 4 VCPU + 6G), it's no > more than 10 requests in the system. > > So, we can only increa

[PATCH 7/8] KVM: make async_pf work queue lockless

2010-10-27 Thread Xiao Guangrong
The async_pf number is very few since only pending interrupt can let it re-enter to the guest mode. During my test(Host 4 CPU + 4G, Guest 4 VCPU + 6G), it's no more than 10 requests in the system. So, we can only increase the completion counter in the work queue context, and walk vcpu->async_pf.q