Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756209AbcJMPlH (ORCPT ); Thu, 13 Oct 2016 11:41:07 -0400 Received: from mail-oi0-f48.google.com ([209.85.218.48]:36269 "EHLO mail-oi0-f48.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753674AbcJMPlC (ORCPT ); Thu, 13 Oct 2016 11:41:02 -0400 MIME-Version: 1.0 In-Reply-To: <57FF6B130200007800116F96@prv-mh.provo.novell.com> References: <20161011194810.GD25907@localhost.localdomain> <20161012103318.vq36ed5ebb5xxcom@hz-desktop> <57FE3B880200007800116A75@prv-mh.provo.novell.com> <20161012145826.wwxecoo4o3ypos5o@hz-desktop> <57FE75520200007800116D27@prv-mh.provo.novell.com> <57FE7A710200007800116D60@prv-mh.provo.novell.com> <57FF633E0200007800116F59@prv-mh.provo.novell.com> <20161013085344.ulju7pnnbvufc4em@hz-desktop> <57FF6B130200007800116F96@prv-mh.provo.novell.com> From: Dan Williams Date: Thu, 13 Oct 2016 08:40:21 -0700 Message-ID: Subject: Re: [Xen-devel] [RFC KERNEL PATCH 0/2] Add Dom0 NVDIMM support for Xen To: Jan Beulich Cc: Haozhong Zhang , Stefano Stabellini , Arnd Bergmann , andrew.cooper3@citrix.com, David Vrabel , Andrew Morton , Xiao Guangrong , Ross Zwisler , xen-devel@lists.xenproject.org, "linux-nvdimm@lists.01.org" , Boris Ostrovsky , Konrad Rzeszutek Wilk , Juergen Gross , Johannes Thumshirn , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1184 Lines: 21 On Thu, Oct 13, 2016 at 2:08 AM, Jan Beulich wrote: [..] >> I think we can do the similar for Xen, like to lay another pseudo >> device on /dev/pmem and do the reservation, like 2. in my previous >> reply. > > Well, my opinion certainly doesn't count much here, but I continue to > consider this a bad idea. For entities like drivers it may well be > appropriate, but I think there ought to be an independent concept > of "OS reserved", and in the Xen case this could then be shared > between hypervisor and Dom0 kernel. Or if we were to consider Dom0 > "just a guest", things should even be the other way around: Xen gets > all of the OS reserved space, and Dom0 needs something custom. You haven't made the case why Xen is special and other applications of persistent memory are not. The current struct page reservation supports fundamental address-ability of persistent memory namespaces for the rest of the kernel. The Xen reservation is application specific. XFS, EXT4, and DM also have application specific usages of persistent memory and consume metadata space out of a block device. If we don't need an XFS-mode nvdimm device, why do we need Xen-mode?