From: Keir Fraser Subject: Re: [PATCH, RFC 1/4] linux: add new (replacement) mmap-batch ioctl Date: Tue, 12 Jan 2010 08:50:22 +0000 Message-ID: References: <4B4C3D4B0200007800029469@vpn.id2.novell.com> Mime-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <4B4C3D4B0200007800029469@vpn.id2.novell.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: Jan Beulich Cc: Ian Campbell , "xen-devel@lists.xensource.com" List-Id: xen-devel@lists.xenproject.org On 12/01/2010 08:13, "Jan Beulich" wrote: >>>> Keir Fraser 12.01.10 08:57 >>> >> Looked okay to me. The only question I saw was regarding >> xc_get_pfn_type_xxx: I don't think they are used outside libxc, so you can >> do whatever makes internal sense for libxc (and remove the decls from >> xenctrl.h). > > The other question (of wider scope) was that on the save format > currently used: Using bits 28-31 of the PFNs to encode their types > (effectively wasting bits 32-63 on 64-bit) isn't forward compatible, > and hence sooner or later will require a change. But of course there > are other tools limitations (restricting guests to even smaller amounts > of memory), but those are mostly internal to the tools (i.e. fixing > them would not break compatibility). We'll have to stick some kind of version-bump indicator in the save file, and change the way PFNs and their types are encoded. This is very doable, when the development window reopens. This is definitely a 4.1 feature -- it only prevents us saving 1TB+ guests. It's quite a separate concern from our support for sparse-memory-map hosts. -- Keir