Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S965911AbbD1PfY (ORCPT ); Tue, 28 Apr 2015 11:35:24 -0400 Received: from mail.efficios.com ([78.47.125.74]:59756 "EHLO mail.efficios.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S965700AbbD1PfX (ORCPT ); Tue, 28 Apr 2015 11:35:23 -0400 Date: Tue, 28 Apr 2015 15:35:26 +0000 (UTC) From: Mathieu Desnoyers To: Matthew Wilcox Cc: LKML , Boaz Harrosh , Christoph Hellwig , Ross Zwisler Message-ID: <1364669203.39300.1430235326454.JavaMail.zimbra@efficios.com> In-Reply-To: <1918361018.39276.1430234930039.JavaMail.zimbra@efficios.com> Subject: Using pmem from a driver exposing a memory mapping (mmap) to userspace MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Originating-IP: [192.222.194.238] X-Mailer: Zimbra 8.0.7_GA_6021 (ZimbraWebClient - FF37 (Linux)/8.0.7_GA_6021) Thread-Topic: Using pmem from a driver exposing a memory mapping (mmap) to userspace Thread-Index: SVJ+FGdI3wAM6YJ71Oenll76RzRs7g== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1293 Lines: 38 Hi! I'm currently adaping lttng-modules to use DAX and pmem. It will allow LTTng buffers to be recovered after a kernel crash. I've moved pretty much all struct page pointers to page frame numbers, as I remember being told that pmem does not have struct page. Now I'm looking into adapting my mmap and page fault handler implementation (based on struct page) to a page-frame number based implementation when the ring buffer is backed by persistent memory, which will probably not require any page fault handler at all when based by pmem+dax memory. My current work is in this branch: https://github.com/compudj/lttng-modules-dev/tree/persistent-memory-buffers (see last commits) LTTng-modules supports both mmap() and splice(), but I plan to only provide mmap() support for persistent memory, since splice() really requires struct page. Are there existing driver mmap implementations doing similar things, or do you have recommendations on how to implement this ? Thanks, Mathieu -- Mathieu Desnoyers EfficiOS Inc. http://www.efficios.com -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/