Re: [PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2015-01-16 Thread Kirill A. Shutemov
On Tue, Jan 13, 2015 at 05:37:51PM +0100, Andrea Arcangeli wrote: > Some caller (like KVM) may want to set the gup_flags like > FOLL_HWPOSION to get a proper -EHWPOSION retval instead of -EFAULT to > take a more appropriate action if get_user_pages runs into a memory > failure. > > Signed-off-by:

[PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2015-01-13 Thread Andrea Arcangeli
Some caller (like KVM) may want to set the gup_flags like FOLL_HWPOSION to get a proper -EHWPOSION retval instead of -EFAULT to take a more appropriate action if get_user_pages runs into a memory failure. Signed-off-by: Andrea Arcangeli --- include/linux/mm.h | 4 mm/gup.c | 44 +

Re: [PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2014-10-31 Thread Peter Feiner
On Wed, Oct 29, 2014 at 05:35:17PM +0100, Andrea Arcangeli wrote: > Some caller (like KVM) may want to set the gup_flags like > FOLL_HWPOSION to get a proper -EHWPOSION retval instead of -EFAULT to > take a more appropriate action if get_user_pages runs into a memory > failure. > > Signed-off-by:

Re: [PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2014-10-31 Thread Peter Zijlstra
On Thu, Oct 30, 2014 at 06:43:09PM +0100, Andrea Arcangeli wrote: > On Thu, Oct 30, 2014 at 02:17:37PM +0200, Kirill A. Shutemov wrote: > > On Wed, Oct 29, 2014 at 05:35:17PM +0100, Andrea Arcangeli wrote: > > > diff --git a/mm/gup.c b/mm/gup.c > > > index a8521f1..01534ff 100644 > > > --- a/mm/gup

Re: [PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2014-10-30 Thread Andrea Arcangeli
On Thu, Oct 30, 2014 at 02:17:37PM +0200, Kirill A. Shutemov wrote: > On Wed, Oct 29, 2014 at 05:35:17PM +0100, Andrea Arcangeli wrote: > > diff --git a/mm/gup.c b/mm/gup.c > > index a8521f1..01534ff 100644 > > --- a/mm/gup.c > > +++ b/mm/gup.c > > @@ -591,9 +591,9 @@ static __always_inline long >

Re: [PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2014-10-30 Thread Kirill A. Shutemov
On Wed, Oct 29, 2014 at 05:35:17PM +0100, Andrea Arcangeli wrote: > Some caller (like KVM) may want to set the gup_flags like > FOLL_HWPOSION to get a proper -EHWPOSION retval instead of -EFAULT to > take a more appropriate action if get_user_pages runs into a memory > failure. > > Signed-off-by:

[PATCH 2/5] mm: gup: add __get_user_pages_unlocked to customize gup_flags

2014-10-29 Thread Andrea Arcangeli
Some caller (like KVM) may want to set the gup_flags like FOLL_HWPOSION to get a proper -EHWPOSION retval instead of -EFAULT to take a more appropriate action if get_user_pages runs into a memory failure. Signed-off-by: Andrea Arcangeli --- include/linux/mm.h | 4 mm/gup.c | 44 +