Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753870AbcJLLdN convert rfc822-to-8bit (ORCPT ); Wed, 12 Oct 2016 07:33:13 -0400 Received: from prv-mh.provo.novell.com ([137.65.248.74]:44996 "EHLO prv-mh.provo.novell.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752706AbcJLLdF (ORCPT ); Wed, 12 Oct 2016 07:33:05 -0400 Message-Id: <57FE3B880200007800116A75@prv-mh.provo.novell.com> X-Mailer: Novell GroupWise Internet Agent 14.2.1 Date: Wed, 12 Oct 2016 05:32:56 -0600 From: "Jan Beulich" To: "Haozhong Zhang" Cc: "Stefano Stabellini" , "Arnd Bergmann" , , "David Vrabel" , "Dan Williams" , "Andrew Morton" , "Xiao Guangrong" , "Ross Zwisler" , , "linux-nvdimm@lists.01.org" , "Boris Ostrovsky" , "Konrad Rzeszutek Wilk" , "Juergen Gross" , "Johannes Thumshirn" , "linux-kernel@vger.kernel.org" Subject: Re: [Xen-devel] [RFC KERNEL PATCH 0/2] Add Dom0 NVDIMM support for Xen References: <20161010003523.4423-1-haozhong.zhang@intel.com> <57FCF26A02000078000F15E0@prv-mh.provo.novell.com> <20161011165811.GO19349@localhost.localdomain> <20161011183259.GA23193@localhost.localdomain> <20161011194810.GD25907@localhost.localdomain> <20161012103318.vq36ed5ebb5xxcom@hz-desktop> In-Reply-To: <20161012103318.vq36ed5ebb5xxcom@hz-desktop> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 8BIT Content-Disposition: inline Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1376 Lines: 30 >>> On 12.10.16 at 12:33, wrote: > The layout is shown as the following diagram. > > +---------------+-----------+-------+----------+--------------+ > | whatever used | Partition | Super | Reserved | /dev/pmem0p1 | > | by kernel | Table | Block | for Xen | | > +---------------+-----------+-------+----------+--------------+ > \_____________________ _______________________/ > V > /dev/pmem0 I have to admit that I dislike this, for not being OS-agnostic. Neither should there be any Xen-specific region, nor should the "whatever used by kernel" one be restricted to just Linux. What I could see is an OS-reserved area ahead of the partition table, the exact usage of which depends on which OS is currently running (and in the Xen case this might be both Xen _and_ the Dom0 kernel, arbitrated by a tbd protocol). After all, when running under Xen, the Dom0 may not have a need for as much control data as it has when running on bare hardware, for it controlling less (if any) of the actual memory ranges when Xen is present. The assumption of course is that the reserved area holds no persistent data. If that assumption didn't hold, you'd have to have per-OS reserved areas anyway (as many of them as there might be OSes [planned to get] installed on a particular system). Jan