Re: [PATCH] Drop FOLL_GET in GUP when doing async_pf in kvm

2013-10-14 Thread chai wen
On 10/14/2013 05:14 PM, Gleb Natapov wrote: > On Mon, Oct 14, 2013 at 05:06:42PM +0800, chai wen wrote: >> Hi Gleb >> Thanks for you comment. >> this new patch is based on git://git.kernel.org/pub/scm/virt/kvm/kvm.git >> queue branch. >> Page pinning is not mandatory in kvm async_pf processing and

Re: [PATCH] Drop FOLL_GET in GUP when doing async_pf in kvm

2013-10-14 Thread Gleb Natapov
On Mon, Oct 14, 2013 at 05:06:42PM +0800, chai wen wrote: > Hi Gleb > Thanks for you comment. > this new patch is based on git://git.kernel.org/pub/scm/virt/kvm/kvm.git > queue branch. > Page pinning is not mandatory in kvm async_pf processing and probably should > be dropped later.And we don't min

[PATCH] Drop FOLL_GET in GUP when doing async_pf in kvm

2013-10-14 Thread chai wen
Hi Gleb Thanks for you comment. this new patch is based on git://git.kernel.org/pub/scm/virt/kvm/kvm.git queue branch. Page pinning is not mandatory in kvm async_pf processing and probably should be dropped later.And we don't mind whether the GUP is failed or not.What we need to do is to wake up gu

Re: [RFC][PATCH] Drop FOLL_GET in GUP when doing async_pf in kvm

2013-10-11 Thread Gleb Natapov
On Fri, Oct 11, 2013 at 06:08:16PM +0800, chai wen wrote: > On 10/10/2013 11:15 PM, Gleb Natapov wrote: > > On Thu, Oct 10, 2013 at 09:20:15PM +0800, chai wen wrote: > >> Hi Gleb > >> > >> Thanks for you explanation about async_pf in kvm. > >> Page pinning is not mandatory in kvm async_pf processin

Re: [RFC][PATCH] Drop FOLL_GET in GUP when doing async_pf in kvm

2013-10-11 Thread chai wen
On 10/10/2013 11:15 PM, Gleb Natapov wrote: > On Thu, Oct 10, 2013 at 09:20:15PM +0800, chai wen wrote: >> Hi Gleb >> >> Thanks for you explanation about async_pf in kvm. >> Page pinning is not mandatory in kvm async_pf processing and probably should >> be dropped later.this patch drops the FOLL_GE

Re: [RFC][PATCH] Drop FOLL_GET in GUP when doing async_pf in kvm

2013-10-10 Thread Gleb Natapov
On Thu, Oct 10, 2013 at 09:20:15PM +0800, chai wen wrote: > Hi Gleb > > Thanks for you explanation about async_pf in kvm. > Page pinning is not mandatory in kvm async_pf processing and probably should > be dropped later.this patch drops the FOLL_GET flag when doing GUP in async_pf > and uses a boo

[RFC][PATCH] Drop FOLL_GET in GUP when doing async_pf in kvm

2013-10-10 Thread chai wen
Hi Gleb Thanks for you explanation about async_pf in kvm. Page pinning is not mandatory in kvm async_pf processing and probably should be dropped later.this patch drops the FOLL_GET flag when doing GUP in async_pf and uses a bool (marking result of GUP) to replace the *page in kvm_async_pf structu