All of lore.kernel.org
 help / color / mirror / Atom feed
From: Pavel Emelyanov <xemul@parallels.com>
To: Andrea Arcangeli <aarcange@redhat.com>
Cc: Linux MM <linux-mm@kvack.org>
Subject: Re: [PATCH] UserfaultFD: Rename uffd_api.bits into .features
Date: Thu, 7 May 2015 17:28:46 +0300	[thread overview]
Message-ID: <554B769E.1040000@parallels.com> (raw)
In-Reply-To: <20150507134236.GB13098@redhat.com>

On 05/07/2015 04:42 PM, Andrea Arcangeli wrote:
> Hi Pavel,
> 
> On Thu, Apr 30, 2015 at 07:38:12PM +0300, Pavel Emelyanov wrote:
>> Hi,
>>
>> This is (seem to be) the minimal thing that is required to unblock
>> standard uffd usage from the non-cooperative one. Now more bits can
>> be added to the features field indicating e.g. UFFD_FEATURE_FORK and
>> others needed for the latter use-case.
>>
>> Signed-off-by: Pavel Emelyanov <xemul@parallels.com>
> 
> Applied.
> 
> http://git.kernel.org/cgit/linux/kernel/git/andrea/aa.git/commit/?h=userfault&id=c2dee3384770a953cbad27b46854aa6fd13656c6
> http://git.kernel.org/cgit/linux/kernel/git/andrea/aa.git/commit/?h=userfault&id=d0df59f21f2cde4c49879c00586ce3cb1e3860fe

Great!

> I was also asked if we could return the full address of the fault
> including the page offset. In the end I also implemented this
> incremental to your change:
> 
> http://git.kernel.org/cgit/linux/kernel/git/andrea/aa.git/commit/?h=userfault&id=c308fc81b0a9c53c11b33331ad00d8e5b9763e60
> 
> Let me know if you're ok with it. 

Yup, this is very close to what I did in my set -- introduced a message to
report back to the user-space on read. But my message is more than 8+2*1 bytes,
so we'll have one message for 0xAA API and another one for 0xAB (new) one :)

> The commit header explains more why
> I think the bits below PAGE_SHIFT of the fault address aren't
> interesting but why I did this change anyway.
> 
> After reviewing this last change I think it's time to make a proper
> submit and it's polished enough for merging in -mm after proper review
> of the full patchset.

Yup, fully agree :) And I will soon send the re-based non-cooperative patchset
with new API version, longer messages, fork and remap events reporting.

-- Pavel

--
To unsubscribe, send a message with 'unsubscribe linux-mm' in
the body to majordomo@kvack.org.  For more info on Linux MM,
see: http://www.linux-mm.org/ .
Don't email: <a href=mailto:"dont@kvack.org"> email@kvack.org </a>

  reply	other threads:[~2015-05-07 14:28 UTC|newest]

Thread overview: 40+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-03-18 19:34 [PATCH 0/3] UserfaultFD: Extension for non cooperative uffd usage Pavel Emelyanov
2015-03-18 19:34 ` Pavel Emelyanov
2015-03-18 19:34 ` Pavel Emelyanov
     [not found] ` <5509D342.7000403-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2015-03-18 19:34   ` [PATCH 1/3] uffd: Tossing bits around Pavel Emelyanov
2015-03-18 19:34     ` Pavel Emelyanov
2015-03-18 19:34     ` Pavel Emelyanov
2015-03-18 19:35   ` [PATCH 2/3] uffd: Introduce the v2 API Pavel Emelyanov
2015-03-18 19:35     ` Pavel Emelyanov
2015-03-18 19:35     ` Pavel Emelyanov
     [not found]     ` <5509D375.7000809-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2015-04-21 12:18       ` Andrea Arcangeli
2015-04-21 12:18         ` Andrea Arcangeli
2015-04-21 12:18         ` Andrea Arcangeli
2015-04-23  6:29         ` Pavel Emelyanov
2015-04-23  6:29           ` Pavel Emelyanov
     [not found]           ` <55389133.8070701-bzQdu9zFT3WakBO8gow8eQ@public.gmane.org>
2015-04-27 21:12             ` Andrea Arcangeli
2015-04-27 21:12               ` Andrea Arcangeli
2015-04-27 21:12               ` Andrea Arcangeli
2015-04-30  9:50               ` Pavel Emelyanov
2015-04-30  9:50                 ` Pavel Emelyanov
2015-03-18 19:35   ` [PATCH 3/3] uffd: Introduce fork() notification Pavel Emelyanov
2015-03-18 19:35     ` Pavel Emelyanov
2015-03-18 19:35     ` Pavel Emelyanov
2015-04-21 12:02   ` [PATCH 0/3] UserfaultFD: Extension for non cooperative uffd usage Andrea Arcangeli
2015-04-21 12:02     ` Andrea Arcangeli
2015-04-21 12:02     ` Andrea Arcangeli
     [not found]     ` <20150421120222.GC4481-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2015-04-23  6:34       ` Pavel Emelyanov
2015-04-23  6:34         ` Pavel Emelyanov
2015-04-23  6:34         ` Pavel Emelyanov
     [not found]         ` <20150427211650.GC24035@redhat.com>
2015-04-30 16:38           ` [PATCH] UserfaultFD: Rename uffd_api.bits into .features Pavel Emelyanov
2015-05-07 13:42             ` Andrea Arcangeli
2015-05-07 14:28               ` Pavel Emelyanov [this message]
2015-05-07 14:33                 ` Andrea Arcangeli
2015-05-07 14:42                   ` Pavel Emelyanov
2015-05-07 15:11                     ` Andrea Arcangeli
2015-05-07 15:20                       ` Pavel Emelyanov
2015-05-07 17:08                         ` Andrea Arcangeli
2015-05-07 18:35                           ` Pavel Emelyanov
2015-05-08 13:39                           ` Pavel Emelyanov
2015-05-08 14:07                             ` [PATCH] UserfaultFD: Fix stack corruption when zeroing uffd_msg Pavel Emelyanov
2015-05-08 17:54                               ` Andrea Arcangeli

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=554B769E.1040000@parallels.com \
    --to=xemul@parallels.com \
    --cc=aarcange@redhat.com \
    --cc=linux-mm@kvack.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.