From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:40107) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YupY8-00014e-Hf for qemu-devel@nongnu.org; Tue, 19 May 2015 17:59:45 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YupY7-0006cf-Jo for qemu-devel@nongnu.org; Tue, 19 May 2015 17:59:44 -0400 Received: from mail-vn0-x22e.google.com ([2607:f8b0:400c:c0f::22e]:37630) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YupY7-0006cO-GA for qemu-devel@nongnu.org; Tue, 19 May 2015 17:59:43 -0400 Received: by vnbg190 with SMTP id g190so2236128vnb.4 for ; Tue, 19 May 2015 14:59:42 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20150519143801.8ba477c3813e93a2637c19cf@linux-foundation.org> References: <1431624680-20153-1-git-send-email-aarcange@redhat.com> <20150519143801.8ba477c3813e93a2637c19cf@linux-foundation.org> Date: Tue, 19 May 2015 23:59:42 +0200 Message-ID: From: Richard Weinberger Content-Type: text/plain; charset=UTF-8 Subject: Re: [Qemu-devel] [PATCH 00/23] userfaultfd v4 List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Andrew Morton Cc: kvm , qemu-devel@nongnu.org, Sanidhya Kashyap , Dave Hansen , Andrea Arcangeli , zhang.zhanghailiang@huawei.com, Pavel Emelyanov , Hugh Dickins , Mel Gorman , "Huangpeng (Peter)" , "Dr. David Alan Gilbert" , Andres Lagar-Cavilla , "Kirill A. Shutemov" , "linux-mm@kvack.org" , "open list:ABI/API" , LKML , Andy Lutomirski , Johannes Weiner , Paolo Bonzini , Linus Torvalds , Peter Feiner On Tue, May 19, 2015 at 11:38 PM, Andrew Morton wrote: > On Thu, 14 May 2015 19:30:57 +0200 Andrea Arcangeli wrote: > >> This is the latest userfaultfd patchset against mm-v4.1-rc3 >> 2015-05-14-10:04. > > It would be useful to have some userfaultfd testcases in > tools/testing/selftests/. Partly as an aid to arch maintainers when > enabling this. And also as a standalone thing to give people a > practical way of exercising this interface. > > What are your thoughts on enabling userfaultfd for other architectures, > btw? Are there good use cases, are people working on it, etc? UML is using SIGSEGV for page faults. i.e. the UML processes receives a SIGSEGV, learns the faulting address from the mcontext and resolves the fault by installing a new mapping. If userfaultfd is faster that the SIGSEGV notification it could speed up UML a bit. For UML I'm only interested in the notification, not the resolving part. The "missing" data is present, only a new mapping is needed. No copy of data. Andrea, what do you think? -- Thanks, //richard